Project

Dependencies:   Motor Servo mbed

Revision:
0:17c1875334d9
Child:
1:ed0f48d7be99
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project.cpp	Mon Oct 22 00:18:46 2018 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include "Servo.h"
+#include "Motor.h"
+
+Servo uparm(p21);
+Servo lowarm(p22);
+Motor table(p26, p29, p30);
+DigitalIn s1(p20);
+DigitalIn s2(p19);
+DigitalIn s3(p18);
+DigitalIn s4(p17);
+
+int main() 
+{
+uparm.calibrate(0.0009,90);
+lowarm.calibrate(0.0009,90);
+while(1){
+printf("Enter");
+getchar();
+uparm = .8;
+lowarm= 1;
+getchar();
+uparm = .2;
+lowarm = 0;
+}
+}