File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ extern "C" {
1818 gpio_num_t ex_scl = (gpio_num_t )M5.getPin (m5::pin_name_t ::ex_i2c_scl);
1919 gpio_num_t ex_sda = (gpio_num_t )M5.getPin (m5::pin_name_t ::ex_i2c_sda);
2020 i2c_port_t ex_port = I2C_NUM_0;
21- #if SOC_I2C_NUM == 1
21+ #if SOC_I2C_NUM == 1 || defined(CONFIG_IDF_TARGET_ESP32C6)
2222 i2c_port_t in_port = I2C_NUM_0;
2323#else
2424 i2c_port_t in_port = I2C_NUM_1;
Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ static void in_i2c_init(void) {
421421 gpio_num_t ex_scl = (gpio_num_t )M5.getPin (m5::pin_name_t ::ex_i2c_scl);
422422 gpio_num_t ex_sda = (gpio_num_t )M5.getPin (m5::pin_name_t ::ex_i2c_sda);
423423 i2c_port_t ex_port = I2C_NUM_0;
424- #if SOC_I2C_NUM == 1
424+ #if SOC_I2C_NUM == 1 || defined(CONFIG_IDF_TARGET_ESP32C6)
425425 i2c_port_t in_port = I2C_NUM_0;
426426 #else
427427 i2c_port_t in_port = I2C_NUM_1;
You can’t perform that action at this time.
0 commit comments