bmp5xx
True-to-spec async I2C driver for the BMP580/BMP581/BMP585 barometric pressure sensors.
Features
no_stdcompatible, works without an allocator- Widely compatible, generic over
embedded_hal_asyncI2C traits - 100% documentation coverage
- Based on Bosch Sensortec BMP581 datasheet, written by a human
- Fully tested on real hardware: compatible with Adafruit BMP581 development board
Usage
Getting started is easy:
// initialize the sensor
let bmp5 = new;
bmp5.init.await.unwrap;
// new pressure measurement
let pressure = bmp5.meas_pres.await.unwrap;
Advanced operations:
// change oversampling rate
bmp5.osr_temp;
bmp5.osr_pres;
// set up interrupts
bmp5.int.await.unwrap;
// start continuous measurement
bmp5.start_continuous.await.unwrap;
License: GPL-3.0-or-later