pub struct Bme280Bus<I2C> { /* fields omitted */ }
Expand description
Creates a new Bme280Bus from a I2C peripheral, and an I2C
device address.
use bme280_multibus::i2c::{Address, Bme280Bus};
let mut bme: Bme280Bus<_> = Bme280Bus::new(i2c, Address::SdoGnd);
Free the I2C bus from the BME280.
use bme280_multibus::i2c::{Address, Bme280Bus};
let mut bme: Bme280Bus<_> = Bme280Bus::new(i2c, Address::SdoGnd);
let i2c = bme.free();
Write a single register to the BME280. Read more
Read the calibration from the chip.
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.