i2c_set_pin() function
Configure GPIO pins for I2C SCK and SDA signals.
Arguments
sda_io_num
GPIO number for I2C SDA signal
scl_io_num
GPIO number for I2C SCL signal
sda_pullup_en
Enable the internal pullup for SDA pin
scl_pullup_en
Enable the internal pullup for SCL pin
Return value
- ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error