| Crates.io | ms5607-rs |
| lib.rs | ms5607-rs |
| version | 0.1.1 |
| created_at | 2026-01-09 13:18:01.50986+00 |
| updated_at | 2026-01-09 14:29:18.484475+00 |
| description | no_std driver for the MS5607 barometric pressure sensor |
| homepage | |
| repository | https://github.com/Rechenmaschine/ms56xx |
| max_upload_size | |
| id | 2032056 |
| size | 15,979 |
no_std driver for the TE Connectivity MS5607 barometric pressure sensor.
embedded-hal traitsThis driver is actively used in several projects at https://github.com/aris-space and is deployed on flight hardware.
Add this to your Cargo.toml:
[dependencies]
ms5607-rs = "0.1"
use ms5607_rs::{Ms5607, Oversampling};
// I2C (CSB pin high = address 0x76)
let mut sensor = Ms5607::new_i2c(i2c, true);
// Or SPI
let mut sensor = Ms5607::new_spi(spi);
// Initialize and measure (async)
sensor.init(&mut delay).await?;
let measurement = sensor.measure(Oversampling::Osr2048, &mut delay).await?;
// Or use blocking API
sensor.init_blocking(&mut delay)?;
let measurement = sensor.measure_blocking(Oversampling::Osr2048, &mut delay)?;
println!("Pressure: {} mbar, Temp: {} °C",
measurement.pressure_mbar, measurement.temperature_c);
defmt-03: Enables defmt::Format for all public typesMIT or Apache-2.0 license, at your option.