Sara R410M / LSM303AGR invert threshold

Hi guys!

For my project I use the build-in accelerometer (The LSM303AGR). I want the acceleromter to give me an interrupt when the value of the X-axis falls BELOW 0.8.

So, I set the threshold to 0.8 and used the XLow event with movementrecognition. But now if I run the program I am only given a interrupt when the value goes OVER 0.8 and not when it goes BELOW 0.8.
Has anyone else had this issue yet?

Greetings,

Jaron

I figured it out. Instead of choosing only XLow or XHigh you can do a bitwise OR between the two so now I have enabled them both.

1 Like