Yihui Xiong
/
USBKeyboard
USB keyboard
Fork of USBKeyboard_HelloWorld by
Revision 7:cf2d79e45a4b, committed 2013-09-26
- Comitter:
- yihui
- Date:
- Thu Sep 26 08:21:37 2013 +0000
- Parent:
- 6:17871da2a7e4
- Child:
- 8:336b28c80e29
- Commit message:
- USB keyboard
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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