embedded-qmp6988
This is a platform agnostic Rust driver the QMP6988 digital barometric pressure
sensor using the embedded-hal and embedded-hal-async traits.
This driver can be used both synchronously or asynchronously. It defaults to the
synchronous implementation, but you can switch to the asynchronous one by using
the async feature.
The device
The QMP6988 sensors is high accuracy and small size barometric pressure sensor with low current consumption.
It can be addressed through an I²C or an SPI interface. This driver uses the I²C interface.
Documentation:
Features
- Choose the oversampling setting used for measurements.
- Choose the IIR filter used to reduce the noise in the measurements.
- Perform a single measurement (using the force power mode).
- Do a sofware set.
- Perform repeated measurements using the normal power mode.
Usage
To use this driver, import what you need from this crate and an embedded-hal
implementation, then instantiate the device.
License
Licensed under either of
- 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.
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.