pub trait I2cExt {
// Required method
fn connect_to_i2c(
&self,
instance: &str,
) -> Result<Client<Device>, DriverError>;
}Expand description
Extension trait for DriverContext to simplify connecting to I2C resources.
Required Methods§
Sourcefn connect_to_i2c(&self, instance: &str) -> Result<Client<Device>, DriverError>
fn connect_to_i2c(&self, instance: &str) -> Result<Client<Device>, DriverError>
Connects to an I2C resource with the given instance name.