Struct bmp280::Bmp280
[−]
[src]
pub struct Bmp280 { /* fields omitted */ }
A single BMP280 sensor
Methods
impl Bmp280
[src]
fn zero(&mut self) -> Result<()>
Will set the relative pressure for ground level readings for .read_altitude().
fn read_temperature(&mut self) -> Result<f32>
fn read_pressure(&mut self) -> Result<f32>
fn read_altitude_relative_to(&mut self, sea_level_hpa: f32) -> Result<f32>
Reads the altitude from the sensor relative to the given sea level pressure.
fn read_altitude(&mut self) -> Result<f32>
Reads the altitude from the sensor relative to the zeroed altitude set by .zero(), Bmp280Builder.ground_pressure(), or Bmp280Builder.build() if you do not set a ground pressure.