,,

Fork of Application by Daniel Sygut

Revision:
14:3eee9e20da88
Parent:
13:3dfb24be0612
Child:
15:2a20c3d2616e
diff -r 3dfb24be0612 -r 3eee9e20da88 main.cpp
--- a/main.cpp	Thu Feb 15 11:30:54 2018 +0000
+++ b/main.cpp	Thu Feb 15 12:02:18 2018 +0000
@@ -1,8 +1,6 @@
 #include "mbed.h"
 #include "USBMouse.h"
 #include "USBSerial.h"
-#include "MMA8451Q.h"
-
 
 #define MMA8451_I2C_ADDRESS (0x1d<<1)
 #define REG_WHO_AM_I      0x0D
@@ -30,9 +28,9 @@
     float x, y, z;
 
     while (1) {
-        x = (getAccX()*10);
-        y = (getAccY()*10);
-        z = (getAccZ()*10);
+        x = (getAccX());
+        y = (getAccY());
+        z = (getAccZ());
         printf("X: %1.2f, Y: %1.2f, Z: %1.2f\n", x, y, z);
         mouse.move(x, y);
         wait(0.01);