USBSerialKeyboard Example Program
Dependencies: USBDevice USBSerialKeyboard mbed
Diff: main.cpp
- Revision:
- 0:d8dc1811bfda
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Mar 30 12:29:17 2013 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" +#include "USBSerialKeyboard.h" + +USBSerialKeyboard keyboard; + +int main() { + //Send String over USBSerial + keyboard.printf("Example Serial Print"); + //Example Keypress + keyboard.keypress('w', KEY_SHIFT); + //Release all held Keys (limitation of usb keyboard?) + keyboard.keyrelease(); +} \ No newline at end of file