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.
Dependencies: MMA8451Q8b SLCD mbed
Diff: main.cpp
- Revision:
- 6:825780dcf426
- Parent:
- 5:1fe35a74799a
- Child:
- 7:8e0a51092728
--- a/main.cpp Mon Feb 16 18:18:34 2015 +0000 +++ b/main.cpp Mon Feb 16 18:21:39 2015 +0000 @@ -127,6 +127,8 @@ regData = latchData | axisData; acc.setRegisterInStandby(REG_PULSE_CFG, regData); // write the data acc.readRegs(REG_PULSE_CFG, ®Data, 1); // check it + if (regData == 0xC0 || regData == 0xC4) + //z-axis event detected sprintf (lcdData,"%x",regData); LCDMess(lcdData,BLINKTIME);