![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Turn an mbed into a USB keyboard which can push EANs to a till.
Dependencies: SDFileSystem USBDevice mbed
Fork of USBMouseKeyboard_HelloWorld by
Diff: main.cpp
- Revision:
- 0:845782b77b0d
- Child:
- 1:980859c25e92
diff -r 000000000000 -r 845782b77b0d main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 03 15:18:39 2011 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" +#include "USBMouseKeyboard.h" + +USBMouseKeyboard key_mouse; + +int main(void) { + while (1) { + key_mouse.mediaControl(KEY_VOLUME_DOWN); + key_mouse.printf("Hello World from Mbed\r\n"); + key_mouse.keyCode('s', KEY_CTRL); + key_mouse.move(20, 0); + wait(1); + } +} \ No newline at end of file