bmp388
no_std driver for the bmp388 (pressure sensor).
What works
- Pressure sensor
Supported chips
BMP388
;
Basic usage
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 bmp280 handle:
extern crate bmp388; // or just use bmp388; if 2018 edition is used.
// to create sensor with default configuration:
let mut lsm = BMP388 new?;
// to get pressure:
let pres = ps.pressure;
println!;
Documentation
API Docs available on docs.rs.
ToDo:
- Implement FiFo Buffer support
#Origin
Based on the bmp280 crate by Roma Sokolov and Alexander Zhuravlev.
License
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)