BMP581
A no_std compatible Rust driver for the Bosch BMP581 pressure and temperature sensor.
Features
- Working but yet no full implementation of complete BMP581 register interface yet
- Supports I2C communication, SPI mode untested
no_stdcompatible for use in embedded systems- Example implementation for Raspberry Pi using RPPAL
Usage
Add this to your Cargo.toml:
[]
= "0.1.0" # Use the current version
Examples
Basic Reading (I2C)
use ;
use I2cdev;
use Delay;
Data-Ready Interrupt Example
Run the included example that demonstrates interrupt-based data acquisition:
This example configures the BMP581 to generate interrupts when new sensor data is available, and reads the data via interrupt handling on GPIO22.
Hardware Compatibility
This driver has been tested with:
- Raspberry Pi with RPPAL
- STM32H743 using embassy
But should work with any platform that implements the embedded-hal traits.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.