coucou

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

Revision:
44:b1fd7489369f
Parent:
41:b5a2fbc20beb
Child:
45:b53ae54062c6
--- a/Functions/func.cpp	Wed Apr 13 11:30:16 2016 +0000
+++ b/Functions/func.cpp	Wed Apr 13 11:43:10 2016 +0000
@@ -131,4 +131,18 @@
     right_hand.setGoal(180);
     left_hand.setGoal(180);
     wait(2);
+}
+
+void init_interrupt(void)
+{
+    mybutton.fall(&pressed);
+    mybutton.rise(&unpressed);
+
+    EndL.fall(&ELpressed);
+    EndL.rise(&ELunpressed);
+    EndZ.fall(&EZpressed);
+    EndZ.rise(&EZunpressed);
+    EndR.fall(&ERpressed);
+    EndR.rise(&ERunpressed);
+    ticker.attach_us(&update_main,dt); // 100 Hz
 }
\ No newline at end of file