Balkrishna Wagle
/
Servo_HelloWorld_Myboard
SERVO P21
Fork of Servo_HelloWorld by
main.cpp
- Committer:
- rajivwagle
- Date:
- 2018-03-08
- Revision:
- 2:6a732b645886
- Parent:
- 1:40d2fd0b99e6
File content as of revision 2:6a732b645886:
// Hello World to sweep a servo through its full range #include "mbed.h" #include "Servo.h" Servo myservo(p21); int main() { while(1) { for(float p=0; p<1.0; p += 0.1) { myservo = p; wait(0.2); } } }