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.
- 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 andhardware-registers
traits
Licensed under either of
- European Union Public Licence, Version 1.2, (LICENSE-EUPL or https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
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.
We abide by the Contributor Covenant and ask that you do as well.