From 4b34711a5274e5bdd5fc816d501ce17b9f8498b5 Mon Sep 17 00:00:00 2001 From: Nicolas <10168765+nicop4@users.noreply.github.com> Date: Sat, 23 Aug 2025 17:28:12 +0200 Subject: [PATCH 1/3] Fix compilation error for ESP32 C3 which has only one i2c interface --- src/SSD1306Wire.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From 9e3b44731fee136b73b6be7ca2ef981482541c12 Mon Sep 17 00:00:00 2001 From: Nicolas <10168765+nicop4@users.noreply.github.com> Date: Sat, 23 Aug 2025 17:30:35 +0200 Subject: [PATCH 2/3] Same fix on SH1106 for compilation error for ESP32 C3 which has only one i2c interface --- src/SH1106Wire.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From fe70831331ddbcc0ae74c40b25b2eff76916b285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20St=C3=B6r?= Date: Thu, 11 Sep 2025 08:55:43 +0200 Subject: [PATCH 3/3] Install intelhex for esptool --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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