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.
Diff: main_mouse.cpp
- Revision:
- 4:3618abce1646
- Parent:
- 3:45c2b2d465c4
--- a/main_mouse.cpp Mon Jan 18 10:51:25 2016 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-#if 1
-// https://developer.mbed.org/handbook/USBMouse
-#include "mbed.h"
-#include "USBMouse.h"
-
-int main() {
- USBMouse mouse;
-
- int16_t x = 0;
- int16_t y = 0;
- int32_t radius = 10;
- int32_t angle = 0;
-
- while (1) {
- x = cos((double)angle*3.14/180.0)*radius;
- y = sin((double)angle*3.14/180.0)*radius;
-
- mouse.move(x, y);
- angle += 3;
- wait(0.005);
- }
-}
-
-#endif