![](/media/cache/profiles/08a35fbd01aa5aae7e04350b3dde1c4f.jpg.50x50_q85.png)
USB Keyboard
Fork of USBKeyboard_HelloWorld by
Diff: main.cpp
- Revision:
- 7:eacdf8136a16
- Parent:
- 5:03a4211d593a
--- a/main.cpp Fri Mar 01 13:23:58 2013 +0000 +++ b/main.cpp Sun Mar 01 07:33:51 2015 +0000 @@ -1,21 +1,18 @@ #include "mbed.h" #include "USBKeyboard.h" -//LED1: NUM_LOCK -//LED2: CAPS_LOCK -//LED3: SCROLL_LOCK -BusOut leds(LED1, LED2, LED3); -//USBKeyboard +// USBキーボードのフリをする USBKeyboard keyboard; int main(void) { while (1) { - keyboard.mediaControl(KEY_VOLUME_DOWN); +// 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(); +// keyboard.keyCode(KEY_CAPS_LOCK); + + // 5秒待つ + wait(5); } } \ No newline at end of file