Skip to content

Commit 9e3b447

Browse files
committed
Same fix on SH1106 for compilation error for ESP32 C3 which has only one i2c interface
1 parent 4b34711 commit 9e3b447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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;

0 commit comments

Comments
 (0)