Fork of FXOS8700CQ, with modifications to setup and some additions to class on the way to make it more application configurable... also re-did 14 bit accelerometer data transform.

Dependents:   fxos8700cq_JH_explore

Fork of FXOS8700CQ by Thomas Murphy

Revision:
7:e2b87c7f6c8d
Parent:
6:f79ab691a47b
--- a/FXOS8700CQ.cpp	Fri Feb 05 00:30:30 2016 +0000
+++ b/FXOS8700CQ.cpp	Fri Feb 05 01:57:41 2016 +0000
@@ -70,13 +70,13 @@
 
     //deal with -ve representations
     if (accel_data->x && 0x8000) { //MSB is ONE
-        accel_data->x = -(~(accel_data->x)+1);
+        accel_data->x = -(~(accel_data->x)+4);
     }
     if (accel_data->y && 0x8000) { //MSB is ONE
-        accel_data->y = -(~(accel_data->y)+1);
+        accel_data->y = -(~(accel_data->y)+4);
     }
     if (accel_data->z && 0x8000) { //MSB is ONE
-        accel_data->z = -(~(accel_data->z)+1);
+        accel_data->z = -(~(accel_data->z)+4);
     }
     
     // scale back down to actual 14 bit number