ESP8266 (NodeMCU v3) Wifi problem with I2C SSD1306 (SH1106 128x64)

Hello,

I´m trying to setup NodeMCU (HA ESPHOME) with and I2C OLED Display (SH1306 128x64 4pins).

esp8266:
  board: nodemcuv2

i2c:
  - id: oled
    sda: D5
    scl: D4
    scan: true

display:
  - platform: ssd1306_i2c
    model: "SH1106 128x64"
    address: 0x3C
    id: oled_display
    update_interval: 1s
    pages: 
      - id: page1 
        lambda: |-
         it.printf(0, 0, id(opensans), "Wi-Fi: %.1f", id(${hostname}_wifi_sinal).state);
         it.printf(0, 26, id(roboto), "%2d:%2d", int(id(${hostname}_uptime).state/60), int(id(${hostname}_uptime))%60);

With this i2c, wifi of NodeMCU doesn´t connect, OLED Display show the 2 lines.
If disconnect the display, wifi works.

Tries:

  • Tested in all GPIO´s (D0 to D8) - Same problema
  • Tested with internal and external power source (3.3v, 5v)

What i´m doing wrong ?

Try using the (default) i2c pins: D1 and D2

There´s an incompatibility with SSD1306 devices: