Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 0:1808ad33273a
- Child:
- 1:023abab124e7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Oct 15 19:03:49 2014 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" +#include "Servo.h" + + + +Servo myservo1(p21); +Servo myservo2(p22); + +int main() +{ + + float servopos; + for(servopos=0; servopos<=1.0; servopos+=0.1) { + myservo1=servopos; + myservo2=1.0-servopos; + printf("Servo 1 position %.2f Servo 2 position %.2f\n\r", servopos, (1-servopos)); + getchar(); + } +} \ No newline at end of file