I’m trying to figure out how to do this, by combining the two examples from the LIS3DH library on wake ups from movement, and position change. I however have had no luck with this, and I feel like I’m just cluelessly searching around for a solution. Here’s my code: https://go.particle.io/shared_apps/59655abc64245d03ac0012d9
As of now, the sensor simply wakes up on movement, and disregards position change.What I want it to do, is to remain in sleep mode as sleep as it remains flat, but once it for example is held upside down, it will wake up from it.
Any tips?