KBrat-SSD645-HW-8_1_MMA8451Q8
Fork of MMA8451Q8 by
Diff: MMA8451Q8.cpp
- Revision:
- 7:7812354ef684
- Parent:
- 6:c29386367dcf
- Child:
- 8:65da360cf088
--- 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;