1 unstable release
0.1.0 | May 12, 2024 |
---|
#1595 in Hardware support
39KB
731 lines
BMP180
A platform agnostic driver to interface with the BMP180
(pressure sensor) using the embedded-hal
and embedded-hal-async
traits.
Features
The following features are available:
blocking
: enables blocking functionality.async
: enables asynchronous functionality.log
: enables debug logging using thelog
crate.defmt
: enables debug logging using thedefmt
crate.impl-debug
: implementscore::fmt::Debug
for structs and enums.impl-defmt-format
: implementsdefmt::Format
for structs and enums.fuzz
: enables thefuzz
module for fuzz testing.disable-arithmetic-checks
: disables arithmetic checks.i-know-what-i-am-doing
: allows you to split an initialized device into its parts and put it back together. Useful when you want to release the I2C bus and use it for something else. This is not recommended though, you can useembedded-hal-bus
orembassy-embedded-hal
to share the I2C bus.
Usage
See examples directory.
License
Licensed under either of
- Apache License, Version 2.0. LICENSE-APACHE or Apache-2.0 license
- MIT license. LICENSE-MIT or MIT license
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
~365–590KB
~12K SLoC