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" {
18
18
gpio_num_t ex_scl = (gpio_num_t )M5.getPin (m5::pin_name_t ::ex_i2c_scl);
19
19
gpio_num_t ex_sda = (gpio_num_t )M5.getPin (m5::pin_name_t ::ex_i2c_sda);
20
20
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)
22
22
i2c_port_t in_port = I2C_NUM_0;
23
23
#else
24
24
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) {
421
421
gpio_num_t ex_scl = (gpio_num_t )M5.getPin (m5::pin_name_t ::ex_i2c_scl);
422
422
gpio_num_t ex_sda = (gpio_num_t )M5.getPin (m5::pin_name_t ::ex_i2c_sda);
423
423
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)
425
425
i2c_port_t in_port = I2C_NUM_0;
426
426
#else
427
427
i2c_port_t in_port = I2C_NUM_1;
You can’t perform that action at this time.
0 commit comments