Module components::bmp280

source ·
Expand description

Component for the BMP280 Temperature and Pressure Sensor.

Based off the SHT3x code.

I2C Interface

§Usage

With the default i2c address

let bmp280 = components::bmp280::Bmp280Component::new(sensors_i2c_bus, mux_alarm).finalize(
        components::bmp280_component_static!(nrf52::rtc::Rtc<'static>),
    );
bmp280.begin_reset();

With a specified i2c address

let bmp280 = components::bmp280::Bmp280Component::new(sensors_i2c_bus, mux_alarm).finalize(
        components::bmp280_component_static!(nrf52::rtc::Rtc<'static>, capsules_extra::bmp280::BASE_ADDR),
    );
bmp280.begin_reset();

Structs§

Type Aliases§