Function esp_idf_svc::sys::i2c_set_pin
source ยท pub unsafe extern "C" fn i2c_set_pin(
i2c_num: u32,
sda_io_num: i32,
scl_io_num: i32,
sda_pullup_en: bool,
scl_pullup_en: bool,
mode: u32,
) -> i32
Expand description
@brief Configure GPIO pins for I2C SCK and SDA signals.
@param i2c_num I2C port number @param sda_io_num GPIO number for I2C SDA signal @param scl_io_num GPIO number for I2C SCL signal @param sda_pullup_en Enable the internal pullup for SDA pin @param scl_pullup_en Enable the internal pullup for SCL pin @param mode I2C mode
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error