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-11
- Revision:
- 2:812701011676
- Parent:
- 1:74a29b62a144
- Child:
- 3:198ec91cec19
File content as of revision 2:812701011676:
#include "mbed.h" //#include "ExtendedServo.h" #include "DelayServo.h" DigitalOut myled(LED1); int main() { //PwmServo a(PB_8); //ExtendedServo b(PB_10, 170, 5, 90, false); DelayServo b(PB_10, 10, 10000, 170, 5, 90, false);//10度刻みで50ms毎に角度を更新 while(1) { b.setAngle(-90); wait_ms(2000); b.setAngle(90); wait_ms(2000); } }