USBMouseKeyboard Hello World

Dependencies:   mbed USBDevice

Files at this revision

API Documentation at this revision

Comitter:
samux
Date:
Thu Nov 03 15:18:39 2011 +0000
Child:
1:980859c25e92
Commit message:

Changed in this revision

USBDevice.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/USBDevice.lib	Thu Nov 03 15:18:39 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/samux/code/USBDevice/#019ce73594da
--- /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