Macro esp_ward::init_i2c_default

source ·
macro_rules! init_i2c_default {
    ($peripherals:ident, $pins:ident, $clocks:ident) => { ... };
}
Expand description

Initializes the default I2C configuration for the ESP board. Assumes the use of the standard I2C0 peripheral and “default” pin configuration. The rest of “default” functions

§Examples

let peripherals = esp_ward::take_periph!();
let (clocks, pins) = esp_ward::init_chip!(peripherals);
let mut i2c = esp_ward::init_i2c_default!(peripherals, pins, clocks);