USBSerialKeyboard Example Program

Dependencies:   USBDevice USBSerialKeyboard mbed

Files at this revision

API Documentation at this revision

Comitter:
p3p
Date:
Sat Mar 30 12:29:17 2013 +0000
Commit message:
Initial Commit

Changed in this revision

USBDevice.lib Show annotated file Show diff for this revision Revisions of this file
USBSerialKeyboard.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /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
--- /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
--- /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
--- /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