#accelerometer #compass #embedded-hal-driver #mems

no-std lsm303dlhc

A platform agnostic driver to interface with the LSM303DLHC (accelerometer + compass)

4 releases

Uses old Rust 2015

0.2.0 May 12, 2018
0.1.2 Feb 19, 2018
0.1.1 Jan 17, 2018
0.1.0 Jan 17, 2018

#1352 in Embedded development

Download history 138/week @ 2023-11-25 97/week @ 2023-12-02 107/week @ 2023-12-09 141/week @ 2023-12-16 111/week @ 2023-12-23 66/week @ 2023-12-30 140/week @ 2024-01-06 206/week @ 2024-01-13 108/week @ 2024-01-20 84/week @ 2024-01-27 87/week @ 2024-02-03 124/week @ 2024-02-10 244/week @ 2024-02-17 202/week @ 2024-02-24 133/week @ 2024-03-02 70/week @ 2024-03-09

676 downloads per month
Used in 4 crates (2 directly)

MIT/Apache

12KB
233 lines

lsm303dlhc

A platform agnostic driver to interface with the LSM303DLHC (accelerometer + compass)

What works

  • Reading the accelerometer
  • Reading the compass and temperature sensor

TODO

  • Make sure this works with the i2cdev crate (i.e. with the Raspberry Pi)
  • Configuration. e.g. selecting the accelerometer / compass sensing range / sensitivity.
  • How to make the API compatible with device specific features like DMA and interrupts?
  • ???

Examples

You should find at least one example in the f3 crate.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~360KB