no_std driver for the bmp388 (pressure sensor).
Include library as a dependency in your Cargo.toml
:
[dependencies.bmp388]
version = "<version>"
Use embedded-hal
implementation to get I2C handle and delay then create bmp388 handle:
extern crate bmp388; // or just use bmp388; if 2018 edition is used.
// to create sensor with default configuration:
let mut ps = bmp388::BMP388::new(i2c)?;
// to get pressure:
let pres = ps.sensor_values();
println!("{:?}", pres);
API Docs available on docs.rs.
- default: none enabled by default
defmt-03
- enable[email protected]
formatting for structs and enumsserde
- enableserde
Deserialize and Serialize implementations on structs and enumsasynch
- enableembedded-hal-async
implementation for the Asynchronous API.config-builder
- enable the typed config builderConfigBuilder
for setting up the sensor and initializing it.
For the blocking API the MSRV is 1.65
, however, for the asynchronies API, enabled with the feature asynch
, the MSRV is 1.75
.
- Implement FiFo Buffer support
Based on the bmp280 crate by Roma Sokolov and Alexander Zhuravlev.
- MIT license (LICENSE-MIT or http:https://opensource.org/licenses/MIT)