Project Paint / Mbed 2 deprecated arm_control

Dependencies:   mbed QEI biquadFilter

Revision:
22:cda3e5ad89c0
Parent:
21:2aed81380bc3
Child:
23:dba0233303b6
--- a/test_main.cpp	Thu Nov 03 16:37:41 2016 +0000
+++ b/test_main.cpp	Thu Nov 03 16:48:58 2016 +0000
@@ -24,6 +24,9 @@
 DigitalOut led_green(LED_GREEN);
 DigitalOut led_blue(LED_BLUE);
 
+/* ABORT! ABORT! */
+InterruptIn killButton(D3);
+
 /*For debuggin purposes*/
 //Serial pc(USBTX, USBRX);
 
@@ -380,9 +383,11 @@
 
 // ====== The entry point of our programme ======
 
+
 int main() //TODO this will become the actual main!
 {
     //pc.baud(115200);
+    killButton.fall(robotController.getRobot(), &Robot::kill);
     
     // initial state
     resetLeds();