pub struct Bme280Bus<SPI, CS> { /* fields omitted */ }
Expand description
Creates a new Bme280Bus from a SPI peripheral and a chip select
digital I/O pin.
The chip select pin must be high before being passed to this function.
use bme280_multibus::spi::Bme280Bus;
use embedded_hal::digital::v2::OutputPin;
pin.set_high()?;
let mut bme: Bme280Bus<_, _> = Bme280Bus::new(spi, pin);
Free the SPI bus and CS pin from the W5500.
use bme280_multibus::spi::Bme280Bus;
use embedded_hal::digital::v2::OutputPin;
pin.set_high()?;
let mut bme: Bme280Bus<_, _> = Bme280Bus::new(spi, pin);
let (spi, pin) = 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.