DC motor and Servo

Dependencies:   DC_Motor Servo mbed

Fork of Lab2_41 by Lab #01

Revision:
0:5ea7adc7e9cf
Child:
1:88e499bfdcc7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Sep 27 19:12:14 2018 +0000
@@ -0,0 +1,24 @@
+#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);
+     
+     
+     }
+
+
+}