2020-01-21 03:08 AM
For my project I want the LSM303AGR give me an interrupt if the read value of the X-axis falls BELOW the given threshold.
For example:
I have my threshold on 0.8.
I bind the interrupt to to XLow and use movementrecognition.
Now an interrupt is given if the x-axis goes OVER or is HIGHER than 0.8 but I want it to give an interrupt when it falls BELOW 0.8. Am I missing something or can this not be inverted?
Greetings,
Jaron
2020-03-30 09:06 AM
Hi @Jvan .2 , you could enable the H_LACTIVE of the CTRL_REG6_A (25h) register: the INT pin will stay high until the threshold will be exceeded from bottom to up. It is a reverse way to use the interrupt. Regards