Set accelerometer to 8G for testing

Fork of MMA8451Q by Emilio Monti

Files at this revision

API Documentation at this revision

Comitter:
scohennm
Date:
Wed Feb 22 15:35:47 2017 +0000
Parent:
6:c29386367dcf
Commit message:
Change #define for MAX_8G

Changed in this revision

MMA8451Q8.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r c29386367dcf -r 7812354ef684 MMA8451Q8.cpp
--- a/MMA8451Q8.cpp	Wed Feb 22 15:27:52 2017 +0000
+++ b/MMA8451Q8.cpp	Wed Feb 22 15:35:47 2017 +0000
@@ -52,7 +52,7 @@
     uint8_t data[2] = {REG_CTRL_REG_1, 0x00};
     writeRegs(data, 2); // put in standby
     data[0] = XYZ_DATA_CFG;
-    data[1] = 0x02;
+    data[1] = MAX_8G;
     writeRegs(data, 2);// change g limit
     data[0] = REG_CTRL_REG_1;
     data[1] = 0x01;