[−][src]Crate ms5611_spi
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
ⓘThis example is not tested
// 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
Ms5611 | MS5611 driver |
Sample | Pressure and Thermometer measurement |
Enums
Oversampling | Oversampling rates as defined in datasheet defines for how long reading a sample will block |