David Pasztor / Mbed 2 deprecated Motor_control

Dependencies:   mbed-rtos mbed

Revision:
56:389436192e63
Parent:
50:c0c299bf54a6
Child:
57:b1b4e1379613
--- a/photointerruptRoutines.h	Fri Mar 24 17:46:13 2017 +0000
+++ b/photointerruptRoutines.h	Fri Mar 24 18:36:20 2017 +0000
@@ -82,4 +82,13 @@
  
     if (I2.read() == 1)                     //Only count revolutions if the
         count_i3++;                         // rotor spins forward
+}
+
+void startInterrupts() {
+    I1.rise(&i_edge);
+    I1.fall(&i_edge);
+    I2.rise(&i_edge);
+    I2.fall(&i_edge);
+    I3.rise(&i3rise);
+    I3.fall(&i_edge);
 }
\ No newline at end of file