Accessing on-board sensors - accelerometer & gyro



I understand the onboard accelerometer & gyro or connected directly to wp85 over I2C.
Are there any APIs/libraries/ sample code available to access these sensors from WP85?



The accelerometer/gyroscope is a LSM6DS3. I’m not sure whether anyone has tried to get it working yet. There is a Linux kernel driver available for it here:


you can use the user space access to the accelerometer/gyro code as well:


Hi Asyal,
is there any way/doc that i can follow to use the accelerometer iwith the arduino of the mangoh green ? I am not using wp and legato environment but just a LTE modem and the arduino environment.
Any help would be appreciated… Thanks you in advance