Robotics Kit Workshop
/
Program3_Servo
how to control a servo
Fork of Servo_HelloWorld by
Diff: main.cpp
- Revision:
- 3:67e0dff40e71
- Parent:
- 2:6d90139fddb2
- Child:
- 4:0b1d0b30c936
--- a/main.cpp Sat May 28 04:28:06 2016 +0000 +++ b/main.cpp Sat May 28 07:29:01 2016 +0000 @@ -1,7 +1,7 @@ #include "mbed.h" // this tells us to load mbed related functions #include "Servo.h" // library for the Servo -Servo myservo(p21); +Servo myservo(p10); // this code runs when the microcontroller starts up int main() {