Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C12832_lcd EthernetInterface SensorDataParser mbed-rtos mbed USBDevice
Fork of SensorStream_BlinkyDemo by
Revision 3:7321fccc3d91, committed 2013-10-28
- 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); } }