mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-04 04:19:39 +00:00

lp_core_i2c.h header file has sda and scl pins hardcoded to GPIO6 and GPIO7 which works only for ESP32C6. ESP32C5 uses GPIO2 and GPIO3 for I2C SDA and SCL. Hence, added LP_I2C_SCL_IO and LP_I2C_SDA_IO macros under conditional compilation in library header file, so there is no need to hardcode I2C GPIO pins and any other test apps or examples that are including the LP I2C header file can also use Macro directly.