Module bsec::bme::bme680

source ·
Expand description

Provides a BmeSensor implementation for the BME680 sensor.

This module is only available if the use-bme680 feature is enabled.

The implementation is based on the bme680 crate.

Example

use bme680::{Bme680, I2CAddress};
use bsec::bme::bme680::Bme680Sensor;
use linux_embedded_hal::{Delay, I2cdev};

let i2c = I2cdev::new("/dev/i2c")?;
let bme680 = Bme680::init(i2c, Delay {}, I2CAddress::Primary)?;
let sensor = Bme680SensorBuilder::new(bme680)
    .with_initial_ambient_temp_celsius(25.)
    .with_temp_offset_celsius(6.3)
    .build();

Structs

Implementation of the BmeSensor trait for the BME680 sensor.
Builder for Bme680Sensor instances.