adafruit / Adafruit_LSM6DS

Arduino library for LSM6DS
Other
50 stars 41 forks source link

Add tilt detection #38

Open Hedgehog2986 opened 2 years ago

Hedgehog2986 commented 2 years ago

Adds functionality for the embedded tilt function. Adds .tilt() boolean and tilt interrupt on Int1. Created simple example based on the shake example, as code in this change is similar. Tested on a LSM6DS33 board, example outputs when tilted. Interrupt also tested, works as expected.