#compass #accelerometer #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

#1342 in Embedded development

Download history 148/week @ 2024-07-22 112/week @ 2024-07-29 107/week @ 2024-08-05 233/week @ 2024-08-12 93/week @ 2024-08-19 103/week @ 2024-08-26 108/week @ 2024-09-02 87/week @ 2024-09-09 116/week @ 2024-09-16 141/week @ 2024-09-23 145/week @ 2024-09-30 35/week @ 2024-10-07 86/week @ 2024-10-14 147/week @ 2024-10-21 149/week @ 2024-10-28 106/week @ 2024-11-04

489 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

~365KB