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.
Dependencies: mbed Servo MODSERIAL FastPWM
main.cpp
- Committer:
- AnkePost
- Date:
- 2019-10-11
- Revision:
- 1:f6898c9b8c44
- Parent:
- 0:60a8a60074a7
- Child:
- 2:381007cb7a70
File content as of revision 1:f6898c9b8c44:
// Hello World to sweep a servo through its full range #include "mbed.h" #include "Servo.h" #include <math.h> Serial pc(USBTX, USBRX); Servo myservo(D5); int main() { for(float p=0; p<1.0; p += 0.1) { myservo = p; wait(0.5); pc.printf("hello!"); } }