Expand description
no_std driver for the MS5611 (barometric pressure sensor)
§Usage
Use embedded-hal implementation to get SPI, NCS, and delay, then create a ms5611 handle
ⓘ
// Create handle
let ms5611 = Ms5611::new(spi, ncs, Delay)?;
// Get a second order compensated pressure (and thermo) sample,
let sample = ms5611.get_second_order_sample(Oversampling::OS_2048)?;
println!("{:?}", sample);§References
Structs§
Enums§
- Oversampling
- Oversampling rates as defined in datasheet defines for how long reading a sample will block