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.
main.cpp
- Committer:
- jkangwi
- Date:
- 2014-10-20
- Revision:
- 1:023abab124e7
- Parent:
- 0:1808ad33273a
File content as of revision 1:023abab124e7:
#include "mbed.h" #include "Servo.h" Servo myservo1(p21); //top Servo myservo2(p22); //bottom int main() { float servopos; for(servopos=0.0; servopos<=2.0; servopos+=0.01) { myservo1=servopos; myservo2=servopos; printf("Servo 1 position %.2f Servo 2 position %.2f\n\r", servopos, (servopos)); getchar(); } }