Skip to content

Latest commit

 

History

History
74 lines (45 loc) · 2.62 KB

README.md

File metadata and controls

74 lines (45 loc) · 2.62 KB

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.