This piece of documentation (https://electricimp.com/docs/libraries/hardware/lis3dh/) is not helping me much with my specific requirement. I need an interrupt for when the Z axis’s position is less than -0.5. The closest line of code I have working is:
accel.configureInertialInterrupt(true, 1.08, 5, LIS3DH.Z_HIGH | LIS3DH.AOI)
The above just basically triggers an interrupt when more than 1.08G’s are exerted on the Z axis, and then, once the interrupt is trigered, I can read Z’s position. Not ideal. Do you know the code/syntax to accomplish this better?