From fba82eced3eda1383d5f8e487207815a585ed11a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Thu, 3 Apr 2025 15:27:35 +0200 Subject: [PATCH] fix sh1107 on nrf52 --- src/SH1106Wire.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SH1106Wire.h b/src/SH1106Wire.h index 6ef4fdb..b0f40ee 100644 --- a/src/SH1106Wire.h +++ b/src/SH1106Wire.h @@ -211,7 +211,7 @@ class SH1106Wire : public OLEDDisplay { void initI2cIfNeccesary() { if (_doI2cAutoInit) { -#ifdef ARDUINO_ARCH_AVR +#if !defined(ARDUINO_ARCH_ESP32) && !defined(ARDUINO_ARCH_ESP8266) _wire->begin(); #else _wire->begin(this->_sda, this->_scl);