# Pure rust driver for the Bosch BME680 environmental sensor
This crate focuses on ease of use.
## Additional information
- [BME680 product page](https://www.bosch-sensortec.com/products/environmental-sensors/gas-sensors/bme680/)
- Official [C version](https://github.com/BoschSensortec/BME680_driver)
## Simple example
Mock i2c and delay have to be replaced with specific hardware crates.
```rust
fn main() -> ! {
let i2c = mock::blocking_i2c();
let delay = mock::MockDelay;
let config = bosch_bme680::Configuration::default();
let mut bme = Bme680::new(i2c, DeviceAddress::Primary, delay, &config, 20).unwrap();
thread::sleep(Duration::from_millis(100));
loop {
thread::sleep(Duration::from_secs(2));
let values = bme.measure().unwrap();
println!("Values: {values:?}\n");
}
}
```