ms5637-rs
no_std driver for the TE Connectivity MS5637 barometric pressure sensor.
- Supports I2C interface (fixed address 0x76)
- Async and blocking APIs via
embedded-haltraits - Extended oversampling range (256-8192)
- Second-order temperature compensation
- CRC validation of calibration data
Usage
Add this to your Cargo.toml:
[]
= "0.1"
Example
use ;
// I2C (fixed address 0x76)
let mut sensor = new_i2c;
// 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.