Update 640cplusplus.md

This commit is contained in:
shrkey
2016-10-18 11:18:07 +01:00
committed by GitHub
parent 72e5a91505
commit f80c6d5613

View File

@@ -229,7 +229,7 @@ dw1->setMotorSpeed(1250)
#### Select a Servo #### Select a Servo
There are two servo ports on the 640 board. They are numbered from 1 to 6 with number 1 to the left hand side and number 6 the closest to the power connector. There are two servo ports on the 640 board. They are numbered from 1 and 2 with number 1 to the left hand side and number 2 the closest to the motor connectors.
You select a servo in the same manner as you select motors, by requesting a servo object from the controller - to select the first servo we use: You select a servo in the same manner as you select motors, by requesting a servo object from the controller - to select the first servo we use:
@@ -352,4 +352,4 @@ If you want more control and need to move two or more motors at the same time th
Unlike with Python, we need to take an extra step with C++ and compile our code so that it can be run on the Raspberry Pi. Unlike with Python, we need to take an extra step with C++ and compile our code so that it can be run on the Raspberry Pi.
To do that, and to make it easier to re-compile as you update, we will create a *makefile*. The *makefile* is a little script that knows the location of all the libraries we want to include in our program and knows how to compile them together to make a single exectuable. To do that, and to make it easier to re-compile as you update, we will create a *makefile*. The *makefile* is a little script that knows the location of all the libraries we want to include in our program and knows how to compile them together to make a single exectuable.