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 MMA8451Q by
Revision 7:7812354ef684, committed 2017-02-22
- 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 |
--- 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;
