Skip to content

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

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
EUPL-1.2
LICENSE-EUPL
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

sunsided/lsm303dlhc

 
 

STMicroelectronics LSM303DLHC I²C driver

Crates.io Docs Build Status MSRV EUPL 1.2 licensed Apache 2.0 licensed MIT licensed

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

Do note that the sensor is discontinued and that documentation is scarce. Owners of an STM32F3 Discovery board may still find this crate useful, among others.

What works

  • Reading the accelerometer in I²C blocking mode
  • Reading the compass and temperature sensor I²C blocking mode
  • Direct access to registers via lsm303dlhc-registers structs and hardware-registers traits

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 triple licensed as above, without any additional terms or conditions.

Code of Conduct

We abide by the Contributor Covenant and ask that you do as well.

About

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

Topics

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
EUPL-1.2
LICENSE-EUPL
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages

  • Rust 100.0%