I am using the FXOS8700CQ to check whether a vehicle is moving. My main Problem is, that i don't know the orientation of the device when installed in the vehicle, so i can't just enable only the x-axis. The device may also be installed diagonaly, so just figuring out which axis to disable doesn't seem to work either, since Forward acceleration value could be a combination of two or three axes.
The aim is, that an Interrupt is triggered when the device starts moving, and another one when it stops. After some testing i think this can be achieved with de debounce Counter in-/decrementing with every cycle with an Interrupt on both edges.
I'm glad for any ideas as to how to solve this Problem.