Stanley Cohen / Mbed 2 deprecated KL46z_s_t_160301

Dependencies:   MMA8451Q8b SLCD mbed

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, &regData, 1);  // check it
+        if (regData == 0xC0 || regData == 0xC4)
+            //z-axis event detected
         sprintf (lcdData,"%x",regData);
         LCDMess(lcdData,BLINKTIME);