Function esp_idf_sys::i2c_set_pin

source ยท
pub unsafe extern "C" fn i2c_set_pin(
    i2c_num: i2c_port_t,
    sda_io_num: c_int,
    scl_io_num: c_int,
    sda_pullup_en: bool,
    scl_pullup_en: bool,
    mode: i2c_mode_t,
) -> esp_err_t
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