bmp280
no_std driver for the bmp280 (pressure sensor).
BMP280
;Include library as a dependency in your Cargo.toml
:
[dependencies.bmp280-ehal]
version = "<version>"
Use embedded-hal implementation to get I2C handle and delay then create bmp280 handle:
```rust extern crate bmp280_ehal; // or just use bmp280; if 2018 edition is used.
// to create sensor with default configuration: let mut lsm = bmp280_ehal::BMP280::new(i2c)?; // to get pressure: let pres = ps.pressure(); println!("{:?}", pres); ```
Number of examples can be found in proving-ground repo.
API Docs available on docs.rs.