lis3dh-accelerometer

xod/common-hardware/lis3dh-accelerometer

Reads acceleration from an accelerometer based on LIS3DH IC by STMicroelectronics. It is expected the accelerometer is connected to the first hardware I²C bus.
lis3dh-accelerometer
@/lis3dh-accelerometer
Reads acceleration from an accelerometer based on LIS3DH IC by STMicroelectronics. It is expected the accelerometer is connected to the first hardware I²C bus.
I2Cxod/i2c/i2c
ADDRbyte
I²C address. 18h by default. Some board configurations use 19h instead.
SENSnumber
Sensitivity. Can be 2 (default), 4, 8, or 16. Defines bounds of measurements expressed in ɡ (standard gravity) units. E.g. max ±4g. The lower the sensitivity the better output precission. Inaccurate values are rounded up to a nearest correct sensitivity level.
INITpulse
Triggers initialization of the sensor and sets sensitivity
UPDpulse
Update. Triggers new sensor reading.
lis3dh-accelerometer
XgXgYgYgZgZgDONEDONEERRERRI2CI2CADDRADDRSENSSENSINITINITUPDUPD
ERRpulse
Fires if reading failed
DONEpulse
Fires when reading is done
Zgnumber
Acceleration along Z axis. Expressed in ɡ units.
Ygnumber
Acceleration along Y axis. Expressed in ɡ units.
Xgnumber
Acceleration along X axis. Expressed in ɡ units.