lsm303agr-rs

Platform agnostic Rust driver for the LSM303AGR ultra-compact high-performance eCompass module: ultra-low-power 3D accelerometer and 3D magnetometer

APACHE-2.0 License

Downloads
38.2K
Stars
18
Committers
11
lsm303agr-rs - Release 1.0.0 Latest Release

Published by eldruin 9 months ago

Changed

  • [breaking-change] Update to embedded-hal 1.0.
lsm303agr-rs - Release 0.3.0

Published by eldruin over 1 year ago

Added

  • Support temperature sensor.
  • Support magnetometer offset cancellation.
  • Allow getting AccelOutputDataRate and MagOutputDataRate from Hertz.
  • Allow enabling/disabling magnetometer low-pass filter.
  • Allow configuring accelerometer FIFO and interrupts.
  • Allow changing magnetometer mode.

Changed

  • [breaking-change] Reduce size of status structs.
  • [breaking-change] Simplify API by using explicit types for each measurement.
  • Pass delay into functions to handle turn-on times.
  • Add explicit types for accelerometer and magnetometer IDs.
  • Combine methods for changing mode and ODR.
  • Minimum supported Rust version has been upgraded to 1.60.0.
lsm303agr-rs - Release 0.2.2

Published by eldruin about 3 years ago

Fixed

  • Document that the scaled magnetometer data is returned in nanoteslas (nT), not milligauss (mG). Thanks to @hargoniX.
lsm303agr-rs - Release 0.2.1

Published by eldruin about 3 years ago

Changed

  • Measurement and UnscaledMeasurement now implement Copy.
Package Rankings
Top 18.31% on Crates.io
Badges
Extracted from project README
crates.io Docs Build Status Coverage Status
Related Projects