bmp280-driver 0.0.7

A platform agnostic driver to interface with the BMP280 pressure sensor
Documentation
  • Coverage
  • 100%
    50 out of 50 items documented0 out of 19 items with examples
  • Size
  • Source code size: 14.21 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 526.94 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • nnarain/bmp280
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nnarain

bmp280

no_std driver for the bmp280 (pressure sensor).

Build Status

What works

  • Pressure sensor

Supported chips

  • BMP280;

Basic usage

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

[dependencies.bmp280-ehal]
version = "<version>"

Use embedded-hal implementation to get I2C handle and delay then create bmp280 handle:

extern crate bmp280_ehal; // or just use bmp280; if 2018 edition is used.

// to create sensor with default configuration:
let mut bmp = bmp280_ehal::BMP280::new(i2c)?;
// to get pressure:
let pres = bmp.pressure();
println!("{:?}", pres);

More examples

Number of examples can be found in proving-ground repo.

Documentation

API Docs available on docs.rs.

License