![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
DC motor and Servo
Dependencies: DC_Motor Servo mbed
Fork of Lab2_41 by
main.cpp
- Committer:
- Red_Nova_Six
- Date:
- 2018-09-27
- Revision:
- 0:5ea7adc7e9cf
- Child:
- 1:88e499bfdcc7
File content as of revision 0:5ea7adc7e9cf:
#include "mbed.h" #include "Servo.h" Servo myservo1(p21); Servo myservo2(p22); int main() { myservo1.calibrate(0.0009,90); myservo2.calibrate(0.0009,90); while(1) { myservo1=1; myservo2=0; wait(5); myservo1=0; myservo2=1; wait(5); } }