ElectronAssetTracker
ElectronAssetTracker copied to clipboard
Accelerometer: cancelling gravity and using Z (LowPowerWakeMode)
So, as i understand it - Z axis determination is turned off, as it wasn't clear how to get the chip to cancel out the effects of gravity:
setting: writeRegister8(REG_CTRL_REG2, CTRL_REG2_HPM1 | CTRL_REG2_HPM0 | CTRL_REG2_HPIS1);
& adding Z axis to int1_cfg seems to solve the problem. I can't say i quite understand how this works, as the documentation really isn't clear [to a newb like me]...