State machine

Dependencies:   mbed Adafruit_GFX BioroboticsMotorControl MODSERIAL BioroboticsEMGFilter

Revision:
42:cafa56da9ed2
Parent:
25:cc81f2120eda
Child:
50:5d2176b93a65
--- a/Screen.h	Thu Nov 01 16:05:41 2018 +0000
+++ b/Screen.h	Thu Nov 01 16:15:30 2018 +0000
@@ -53,6 +53,20 @@
         oled.printf(" -\r\n");
         display();
     }
+    
+    void display_emg_state(bool left_tensed, bool right_tensed) {
+        oled.setTextCursor(0, 8);
+        if (left_tensed) {
+            oled.printf("Left  ");
+        } else {
+            oled.printf("      ");
+        }
+        if (right_tensed) {
+            oled.printf("Right");
+        } else {
+            oled.printf("     ");
+        }
+    }
 
     // Returns a direct handle to the screen.
     // Be carefull while using the handle.