Gerardo CR / Mbed 2 deprecated TV_mouse-simple

Dependencies:   USBDevice mbed

Files at this revision

API Documentation at this revision

Comitter:
gerardo_carmona
Date:
Tue Sep 23 21:01:34 2014 +0000
Commit message:
Mouse b?sico

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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 3ba4def65f1a USBDevice.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/USBDevice.lib	Tue Sep 23 21:01:34 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/USBDevice/#5bf05f9b3c7b
diff -r 000000000000 -r 3ba4def65f1a main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Sep 23 21:01:34 2014 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "USBMouse.h"
+
+USBMouse mouse;
+DigitalOut myled(LED3);         // Led On
+
+int main() {
+    while(1) {
+        mouse.move(25, 0);      // x, y
+        wait(1);
+        mouse.move(0, 25);
+        wait(1);
+        mouse.move(-25, 0);
+        wait(1);
+        mouse.move(0, -25);
+        wait(1);
+    }
+}
diff -r 000000000000 -r 3ba4def65f1a mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Sep 23 21:01:34 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file