Henk Meewis / Mbed 2 deprecated USB_serial_LED_controller

Dependencies:   mbed

Fork of frdm_echo by Henk Meewis

Revision:
13:019e24491f32
Parent:
12:b846b64e3980
Child:
14:73ef945b8def
--- a/shell.cpp	Thu Apr 17 15:38:08 2014 +0000
+++ b/shell.cpp	Fri Apr 18 21:33:57 2014 +0000
@@ -222,4 +222,14 @@
 {
     sendText(" -> example: turn red LED on");
 }
+//-----------------------------------------------------------------------------
+
+void Shell::reportPushButtonPress(ePushButton thisPushButton)
+{
+    switch(thisPushButton) {
+        case pb2: sendText("SW2"); break;
+        case pb3: sendText("SW3"); break;
+    }
+    sendText(" pressed\n> ");
+}
 //-----------------------------------------------------------------------------
\ No newline at end of file