Demo mode

Dependencies:   BioroboticsMotorControl mbed

Fork of Demo_mode by Marie-Laure Snijders

Revision:
1:1e67c5a527cc
Parent:
0:91a5bdab07d3
Child:
2:135cb382114e
--- a/main.cpp	Thu Nov 01 11:16:51 2018 +0000
+++ b/main.cpp	Thu Nov 01 11:25:58 2018 +0000
@@ -9,6 +9,10 @@
 Motor main_motor(D6, D7, D13, D12);
 Motor sec_motor(D5, D4, D10, D11);
 
+void ()
+
+
+
 int main()
 {
     while (true) 
@@ -22,5 +26,13 @@
         screen.display_up_down_arrow(control_goes_up);
         screen.display_left_right_arrow(control_goes_right);
         screen.display();
+        
+        Button1.fall();
+        Button2.fall();
+
+        if (p_button.is_pressed()) {                            // For panic state
+        current_state = failure;}
+
+
     }
 }
\ No newline at end of file