The firmware of fav-button which distributed at Comike86.
Dependencies: M0_EEPROM_test USBDevice mbed
Fork of USBMouseKeyboard_HelloWorld by
Diff: main.cpp
- Revision:
- 1:980859c25e92
- Parent:
- 0:845782b77b0d
- Child:
- 2:73a1fe1d6599
diff -r 845782b77b0d -r 980859c25e92 main.cpp --- a/main.cpp Thu Nov 03 15:18:39 2011 +0000 +++ b/main.cpp Fri Nov 11 12:12:01 2011 +0000 @@ -1,7 +1,9 @@ #include "mbed.h" #include "USBMouseKeyboard.h" -USBMouseKeyboard key_mouse; +//Bus of leds +BusOut leds(LED1, LED2, LED3); +USBMouseKeyboard key_mouse(REL_MOUSE, &leds); int main(void) { while (1) { @@ -9,6 +11,7 @@ key_mouse.printf("Hello World from Mbed\r\n"); key_mouse.keyCode('s', KEY_CTRL); key_mouse.move(20, 0); + key_mouse.keyCode(KEY_SCROLL_LOCK); wait(1); } } \ No newline at end of file