pub trait I2cBusMappingExt<SDA, SCL>: I2cBusMapping<SDA, SCL>{
// Provided method
fn initialize(self, sda: SDA, scl: SCL) -> Initialize<Self, SDA, SCL> ⓘ
where Self: Sized + Unpin { ... }
}
Expand description
Extension functions for instances of I2cBusMapping
.
Provided Methods§
Sourcefn initialize(self, sda: SDA, scl: SCL) -> Initialize<Self, SDA, SCL> ⓘ
fn initialize(self, sda: SDA, scl: SCL) -> Initialize<Self, SDA, SCL> ⓘ
Initializes a new I²C bus based off of the two provided SDA (data) and SCL (clock) pins.