pub struct AnyI2c<'d>(/* private fields */);
Expand description
Any I2C peripheral.
This struct is a type-erased version of a peripheral singleton. It is useful
for creating arrays of peripherals, or avoiding generics. Peripheral singletons
can be type erased by using their From
implementation.
ⓘ
let any_peripheral = AnyI2c::from(peripheral);