ms5607-rs
no_std driver for the TE Connectivity MS5607 barometric pressure sensor.
- Supports both I2C and SPI interfaces
- Async and blocking APIs via
embedded-haltraits - Second-order temperature compensation
- CRC validation of calibration data
This driver is actively used in several projects at https://github.com/aris-space and is deployed on flight hardware.
Usage
Add this to your Cargo.toml:
[]
= "0.1"
Example
use ;
// I2C (CSB pin high = address 0x76)
let mut sensor = new_i2c;
// Or SPI
let mut sensor = new_spi;
// Initialize and measure (async)
sensor.init.await?;
let measurement = sensor.measure.await?;
// Or use blocking API
sensor.init_blocking?;
let measurement = sensor.measure_blocking?;
println!;
Cargo Features
defmt-03: Enablesdefmt::Formatfor all public types
Related Crates
License
MIT or Apache-2.0 license, at your option.