I2C Pin Location
Posted: Tue Apr 18, 2017 8:23 pm
Page 49 of the ESP32 data sheet says that I2C pins are 21,22,23,24. However, the I2C example in the SDK uses:
What is the correct location for the I2C pins?
Code: Select all
#define I2C_SLAVE_SCL_IO 26 /*!<gpio number for i2c slave clock */
#define I2C_SLAVE_SDA_IO 25 /*!<gpio number for i2c slave data */
#define I2C_MASTER_SCL_IO 19 /*!< gpio number for I2C master clock */
#define I2C_MASTER_SDA_IO 18 /*!< gpio number for I2C master data */