Update 640cplusplus.md
This commit is contained in:
@@ -229,7 +229,7 @@ dw1->setMotorSpeed(1250)
|
||||
|
||||
#### 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:
|
||||
|
||||
@@ -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.
|
||||
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user