USBSerialKeyboard Example Program
Dependencies: USBDevice USBSerialKeyboard mbed
Revision 0:d8dc1811bfda, committed 2013-03-30
- Comitter:
- p3p
- Date:
- Sat Mar 30 12:29:17 2013 +0000
- Commit message:
- Initial Commit
Changed in this revision
diff -r 000000000000 -r d8dc1811bfda USBDevice.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/USBDevice.lib Sat Mar 30 12:29:17 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/USBDevice/#354942d2fa38
diff -r 000000000000 -r d8dc1811bfda USBSerialKeyboard.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/USBSerialKeyboard.lib Sat Mar 30 12:29:17 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/p3p/code/USBSerialKeyboard/#9367d07d0707
diff -r 000000000000 -r d8dc1811bfda main.cpp --- /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
diff -r 000000000000 -r d8dc1811bfda mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Mar 30 12:29:17 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/5e5da4a5990b \ No newline at end of file