Glimit

Fork of MMA8451Q8 by Stanley Cohen

Revision:
7:7812354ef684
Parent:
6:c29386367dcf
Child:
8:a515da97b396
--- 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;