USB keyboard

Dependencies:   USBDevice mbed

Fork of USBKeyboard_HelloWorld by Samuel Mokrani

Files at this revision

API Documentation at this revision

Comitter:
yihui
Date:
Wed Dec 04 08:42:29 2013 +0000
Parent:
8:336b28c80e29
Commit message:
revert

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 336b28c80e29 -r fbbd33bb0676 main.cpp
--- a/main.cpp	Thu Sep 26 08:30:34 2013 +0000
+++ b/main.cpp	Wed Dec 04 08:42:29 2013 +0000
@@ -21,7 +21,7 @@
         caps = status & 0x2;
         leds = status;
         
-        // check if CapsLock is pressed
+        // wait until CapsLock is pressed
         while ((keyboard.lockStatus() & 0x2) == caps) {
             leds = keyboard.lockStatus();
         }