components

Module ccs811

Source
Expand description

Components for the BME280 Humidity, Pressure and Temperature Sensor.

§Usage

    let ccs811 =
        Ccs811Component::new(mux_i2c, 0x77).finalize(components::ccs811_component_static!());
    let temperature = components::temperature::TemperatureComponent::new(
        board_kernel,
        capsules_extra::temperature::DRIVER_NUM,
        ccs811,
    )
    .finalize(());
    let humidity = components::humidity::HumidityComponent::new(
        board_kernel,
        capsules_extra::humidity::DRIVER_NUM,
        ccs811,
    )
    .finalize(());

Structs§