vit petrik / Mbed 2 deprecated OLEDMag

Dependencies:   mbed

Revision:
0:3395699bd0df
Child:
1:eea17a20509b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main_mouse.cpp	Fri Jun 12 09:30:07 2015 +0000
@@ -0,0 +1,27 @@
+#if 0
+#include "mbed.h"
+#include "USBMouse.h"
+
+extern void L152RE_USBclock_setup();
+     
+int main() {
+    L152RE_USBclock_setup();
+    
+    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.001);
+    }
+}
+
+#endif