#embedded-hal-driver #pressure

no-std bmp388

A platform agnostic driver to interface with the BMP388 pressure sensor

1 unstable release

0.1.0 Jun 26, 2019
0.0.3 Jun 23, 2019
0.0.2 Jun 23, 2019
0.0.1 Jun 23, 2019

#350 in Hardware support

MIT license

21KB
461 lines

bmp388

no_std driver for the bmp388 (pressure sensor).

Basic usage

Include library as a dependency in your Cargo.toml crates.io:

[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);

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


lib.rs:

A platform agnostic driver to interface with the BMP388 (pressure sensor)

This driver is built using [embedded-hal] traits.

Dependencies

~105KB