Skip to content

Commit 0119501

Browse files
authored
fix sh1107 on nrf52 (#18)
1 parent 3e9fce8 commit 0119501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SH1106Wire.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class SH1106Wire : public OLEDDisplay {
211211

212212
void initI2cIfNeccesary() {
213213
if (_doI2cAutoInit) {
214-
#ifdef ARDUINO_ARCH_AVR
214+
#if !defined(ARDUINO_ARCH_ESP32) && !defined(ARDUINO_ARCH_ESP8266)
215215
_wire->begin();
216216
#else
217217
_wire->begin(this->_sda, this->_scl);

0 commit comments

Comments
 (0)