Yihui Xiong
/
USBKeyboard
USB keyboard
Fork of USBKeyboard_HelloWorld by
main.cpp
- Committer:
- yihui
- Date:
- 2013-09-26
- Revision:
- 7:cf2d79e45a4b
- Parent:
- 5:03a4211d593a
- Child:
- 8:336b28c80e29
File content as of revision 7:cf2d79e45a4b:
#include "mbed.h" #include "USBKeyboard.h" //LED1: NUM_LOCK //LED2: CAPS_LOCK //LED3: SCROLL_LOCK BusOut leds(LED1, LED2, LED3); //USBKeyboard USBKeyboard keyboard; int main(void) { while (!keyboard.configured()) { } while (1) { leds = keyboard.lockStatus(); } }