just a try... not working

Dependencies:   MMA7660 USBDevice mbed

Files at this revision

API Documentation at this revision

Comitter:
bhaktiK
Date:
Fri Feb 21 22:36:15 2014 +0000
Commit message:
trial

Changed in this revision

MMA7660.lib Show annotated file Show diff for this revision Revisions of this file
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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r db5334c4dd75 MMA7660.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MMA7660.lib	Fri Feb 21 22:36:15 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/Sissors/code/MMA7660/#a8e20db7901e
diff -r 000000000000 -r db5334c4dd75 USBDevice.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/USBDevice.lib	Fri Feb 21 22:36:15 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/USBDevice/#335f2506f422
diff -r 000000000000 -r db5334c4dd75 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Feb 21 22:36:15 2014 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "USBMouse.h"
+#include "MMA7660.h"
+
+USBMouse mouse;
+MMA7660 accel(p28,p27);
+
+int main() {
+    int16_t x = 0;
+    int16_t y = 0;
+    //int32_t radius = 10;
+    //int32_t angle = 0;
+
+    while (1) {
+        x = accel.x();
+        y = accel.y();
+        
+        mouse.move(x, y);
+        //angle += 3;
+        wait(0.001);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r db5334c4dd75 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Feb 21 22:36:15 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc
\ No newline at end of file