This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zephyr LIS2DH 6D orientation detection configuration

I'm having a hard time wrapping my head around how to configure my LIS2DH accelerometer for 6D orientation detection with Zephyr. How would I manipulate the registers of my accelerometer in my program? Zephyr's layers of sensor abstraction are causing a little confusion. Should I be able to configure my accelerometer in my own way using the sensor library? If not, how might I configure my project so that I could write my own I2C commands to the sensor? 

Any example programs would be appreciated.

Related