Recent versions of the ESP SDK (>=4.3) have added extra fields to the i2c_config_t struct which need to be set to zero, otherwise the following errors are printed out:
E (322) i2c: i2c_param_config(644): i2c clock choice is invalid, please check flag and frequency
E (1344) i2c: i2c_set_pin(825): scl and sda gpio numbers are the same
Initialising the struct to zero resolves these issues.
Recent versions of the ESP SDK (>=4.3) have added extra fields to the i2c_config_t struct which need to be set to zero, otherwise the following errors are printed out:
Initialising the struct to zero resolves these issues.
See https://github.com/espressif/esp-idf/issues/6293 for more information on this.