Crate lis2dh12

source ·
Expand description

Platform-agnostic LIS2DH12 accelerometer driver which uses I2C via embedded-hal and implements the Accelerometer trait from the accelerometer crate.


  • Data status structure, decoded from STATUS_REG register
  • Accelerometer errors, generic around another error type E representing an (optional) cause of this error.
  • 3-dimensional XYZ vector of f32 values
  • 3-dimensional XYZ vector of i16 values
  • Interrupt setting and status
  • LIS2DH12 driver