diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c7e1e19..6df81da 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,7 +30,7 @@ jobs: - name: Install PlatformIO run: | python -m pip install --upgrade pip - pip install --upgrade platformio + pip install --upgrade platformio intelhex - name: Install library dependencies run: pio pkg install -g -l "paulstoffregen/Time@^1.6" - name: Run PlatformIO diff --git a/src/SH1106Wire.h b/src/SH1106Wire.h index 4535743..01f3553 100644 --- a/src/SH1106Wire.h +++ b/src/SH1106Wire.h @@ -77,7 +77,7 @@ class SH1106Wire : public OLEDDisplay { this->_address = address; this->_sda = sda; this->_scl = scl; -#if !defined(ARDUINO_ARCH_ESP32) +#if !defined(ARDUINO_ARCH_ESP32) || defined(CONFIG_IDF_TARGET_ESP32C3) this->_wire = &Wire; #else this->_wire = (i2cBus==I2C_ONE) ? &Wire : &Wire1; diff --git a/src/SSD1306Wire.h b/src/SSD1306Wire.h index 8abd4cb..ec48470 100644 --- a/src/SSD1306Wire.h +++ b/src/SSD1306Wire.h @@ -78,7 +78,7 @@ class SSD1306Wire : public OLEDDisplay { this->_address = address; this->_sda = sda; this->_scl = scl; -#if !defined(ARDUINO_ARCH_ESP32) +#if !defined(ARDUINO_ARCH_ESP32) || defined(CONFIG_IDF_TARGET_ESP32C3) this->_wire = &Wire; #else this->_wire = (i2cBus == I2C_ONE) ? &Wire : &Wire1;