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:
- YosukeK
- Date:
- 2014-10-26
- Revision:
- 6:8364e8639b4e
- Parent:
- 3:198ec91cec19
File content as of revision 6:8364e8639b4e:
#include "mbed.h" #include "DelayServo.h" DigitalOut myled(LED1); int main() { DelayServo b(PB_10, 10, 50000, 180, 0, 0, false);//10度刻みで50ms毎に角度を更新 //DelayServo b(PB_10); while(1) { //b.updateInterval(10000); b.setAngle(0); wait_ms(2000); b.setAngle(180); wait_ms(2000); } }