Skip to content

Commit 4b34711

Browse files
committed
Fix compilation error for ESP32 C3 which has only one i2c interface
1 parent f90368e commit 4b34711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)