Alpha Tango / Mbed 2 deprecated R5_Robotics

Dependencies:   mbed

Revision:
1:4ab886b72870
Parent:
0:7e54f0e2be67
Child:
2:5f29bc7daa49
diff -r 7e54f0e2be67 -r 4ab886b72870 main.cpp
--- a/main.cpp	Fri Mar 16 20:32:02 2018 +0000
+++ b/main.cpp	Fri Mar 16 20:50:41 2018 +0000
@@ -7,6 +7,7 @@
 PwmOut stepFR(PTA5);
 PwmOut magArm(PTA12);
 InterruptIn killAll(PTC3); 
+DigitalIn Start(PTC12); 
 DigitalOut enableH(PTC11);
 DigitalOut highH(PTC10);
 
@@ -74,6 +75,11 @@
 
      highH = 1; //This is always high for the H-Bridge
      enableH = 0; //Making sure the H-Bridge starts low and off
+     while(true) 
+     {
+         if (Start == 0)
+         break;
+     }
     
     while(true)