Skip to content

Commit aa10104

Browse files
authored
Fix compilation error on ESP32C3 (#424)
1 parent f90368e commit aa10104

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install PlatformIO
3131
run: |
3232
python -m pip install --upgrade pip
33-
pip install --upgrade platformio
33+
pip install --upgrade platformio intelhex
3434
- name: Install library dependencies
3535
run: pio pkg install -g -l "paulstoffregen/Time@^1.6"
3636
- name: Run PlatformIO

src/SH1106Wire.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class SH1106Wire : public OLEDDisplay {
7777
this->_address = address;
7878
this->_sda = sda;
7979
this->_scl = scl;
80-
#if !defined(ARDUINO_ARCH_ESP32)
80+
#if !defined(ARDUINO_ARCH_ESP32) || defined(CONFIG_IDF_TARGET_ESP32C3)
8181
this->_wire = &Wire;
8282
#else
8383
this->_wire = (i2cBus==I2C_ONE) ? &Wire : &Wire1;

src/SSD1306Wire.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class SSD1306Wire : public OLEDDisplay {
7878
this->_address = address;
7979
this->_sda = sda;
8080
this->_scl = scl;
81-
#if !defined(ARDUINO_ARCH_ESP32)
81+
#if !defined(ARDUINO_ARCH_ESP32) || defined(CONFIG_IDF_TARGET_ESP32C3)
8282
this->_wire = &Wire;
8383
#else
8484
this->_wire = (i2cBus == I2C_ONE) ? &Wire : &Wire1;

0 commit comments

Comments
 (0)