Chumbaka
Dependencies: Servo mbed Chumbaka_backup
Fork of Servo_HelloWorld by
main.cpp
- Committer:
- limcheecheng
- Date:
- 2014-04-16
- Revision:
- 4:4e2ad2aa99b7
- Parent:
- 3:e836d1c41a0b
- Child:
- 5:805d37469e22
File content as of revision 4:4e2ad2aa99b7:
// Hello World to sweep a servo through its full range #include "mbed.h" #include "Servo.h" Servo myservo(PTD4); int main() { // myservo.calibrate(0.00095, 90.0); while (1){ myservo = 0; wait(1); myservo = 0.5; wait(2); myservo = 1.0; wait(3); } }