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.cpp
- Revision:
- 2:e7b766501add
- Parent:
- 0:48fd0c31cef5
- Child:
- 3:b8caa902d79e
diff -r 4828a8ce8468 -r e7b766501add main.cpp
--- a/main.cpp Mon Nov 14 11:48:48 2011 +0000
+++ b/main.cpp Wed Nov 30 11:00:01 2011 +0000
@@ -1,19 +1,19 @@
-#include "mbed.h"
-#include "USBMouse.h"
-
-USBMouse mouse;
-
-int main() {
- 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);
- }
+#include "mbed.h"
+#include "USBMouse.h"
+
+USBMouse mouse;
+
+int main() {
+ 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);
+ }
}
\ No newline at end of file