[][src]Static ruspiro_i2c::I2C

pub static I2C: Singleton<I2cImpl>

Static singleton accessor for the I²C bus peripheral To use the contained i2c API in a safe way use the take_for function passing a clousure that can safely use the resource

I2C.take_for(|i2c| {
    // safe access here e.g. to initialize
    i2c.initialize(250_000_000, true).unwrap();
});