Demo Team / Mbed 2 deprecated SensorStream_BlinkyDemo

Dependencies:   C12832_lcd EthernetInterface SensorDataParser mbed-rtos mbed USBDevice

Fork of SensorStream_BlinkyDemo by Demo Team

Files at this revision

API Documentation at this revision

Comitter:
screamer
Date:
Mon Oct 28 19:22:27 2013 +0000
Parent:
2:8d1e7078c230
Commit message:
Add HID Mouse

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
diff -r 8d1e7078c230 -r 7321fccc3d91 USBDevice.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/USBDevice.lib	Mon Oct 28 19:22:27 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/USBDevice/#d495202c90f4
diff -r 8d1e7078c230 -r 7321fccc3d91 main.cpp
--- a/main.cpp	Mon Oct 28 16:33:31 2013 +0000
+++ b/main.cpp	Mon Oct 28 19:22:27 2013 +0000
@@ -3,7 +3,9 @@
 #include "C12832_lcd.h"
 #include "SensorDataParser.h"
 #include <math.h>
-
+#include "USBMouse.h"
+ 
+USBMouse mouse;
 static EthernetInterface eth;
 static C12832_LCD lcd;
 static Serial pc(USBTX, USBRX);
@@ -63,6 +65,8 @@
             led_up = fabs(pd.ay) * 2;
             led_down = 0;
         }
+        
+        mouse.move(pd.ax*20, pd.ay*30);
     }
 }