Skip to content
/ bmp388 Public
forked from copterust/bmp280

embedded-hal compatible driver for bmp388 pressure sensor

Notifications You must be signed in to change notification settings

ibutra/bmp388

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Features

  • default: none enabled by default
  • defmt-03 - enable [email protected] formatting for structs and enums
  • serde - enable serde Deserialize and Serialize implementations on structs and enums
  • asynch - enable embedded-hal-async implementation for the Asynchronous API.
  • config-builder - enable the typed config builder ConfigBuilder for setting up the sensor and initializing it.

Minimum supported Rust version (MSRV)

For the blocking API the MSRV is 1.65, however, for the asynchronies API, enabled with the feature asynch, the MSRV is 1.75.

ToDo:

  • Implement FiFo Buffer support

Origin

Based on the bmp280 crate by Roma Sokolov and Alexander Zhuravlev.

License

About

embedded-hal compatible driver for bmp388 pressure sensor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%