USB keyboard

Dependencies:   USBDevice mbed

Fork of USBKeyboard_HelloWorld by Samuel Mokrani

Revision:
7:cf2d79e45a4b
Parent:
5:03a4211d593a
Child:
8:336b28c80e29
--- a/main.cpp	Fri Mar 01 13:23:58 2013 +0000
+++ b/main.cpp	Thu Sep 26 08:21:37 2013 +0000
@@ -9,13 +9,11 @@
 //USBKeyboard
 USBKeyboard keyboard;
  
-int main(void) {
+int main(void) {  
+    while (!keyboard.configured()) {
+    }
+    
     while (1) {
-        keyboard.mediaControl(KEY_VOLUME_DOWN);
-        keyboard.printf("Hello World from Mbed\r\n");
-        keyboard.keyCode('s', KEY_CTRL);
-        keyboard.keyCode(KEY_CAPS_LOCK);
-        wait(1);
         leds = keyboard.lockStatus();
     }
 }
\ No newline at end of file