#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

#9 in #compass

Download history 117/week @ 2024-04-08 245/week @ 2024-04-15 167/week @ 2024-04-22 163/week @ 2024-04-29 130/week @ 2024-05-06 176/week @ 2024-05-13 136/week @ 2024-05-20 135/week @ 2024-05-27 158/week @ 2024-06-03 186/week @ 2024-06-10 157/week @ 2024-06-17 151/week @ 2024-06-24 43/week @ 2024-07-01 72/week @ 2024-07-08 144/week @ 2024-07-15 148/week @ 2024-07-22

425 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

~370KB