Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MMA8451Q8 by
Diff: MMA8451Q8.cpp
- Revision:
- 7:7812354ef684
- Parent:
- 6:c29386367dcf
- Child:
- 8:9a17721c387d
--- 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;