logo elektroda
logo elektroda
X
logo elektroda

[NodeMCU] [Arduino] Correct I2C configuration. OLED display 128x128 SSD1327

luthein 2133 0
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17097716
    luthein
    Level 11  
    Hi.
    I am trying to connect a 128x128 OLED display via I2C to the NodeMCU.
    Unfortunately despite many attempts I am not succeeding.
    Connecting the same display to an Arduino Nano is not a problem.

    The display has leads:
    +5/3.3V
    SDA
    SCL
    GND

    Detailed description: .
    When connected to Arduino: 3V3, SDA:A4, SCL:A5, GND everything works fine (ATMega328 hardware I2C), when trying to transfer the same code to the NodeMCU connecting: 3V3, SDA:D 1, SCL:D 2, GND the display does not work properly.
    I am using libraries from the manufacturer of this display. In the case of NodeMCU, it declares Wire.begin(D1,D2)

    [NodeMCU] [Arduino] Correct I2C configuration. OLED display 128x128 SSD1327 .

    Could anyone help transferring the program from the Nano to the NodeMCU?
    I also did an I2C scan on the Nano detects the device address correctly: 0x3d, on the NodeMCU unfortunately not.
    Other I2C devices on the NodeMCU work correctly.
    Attached is the library from the display.
  • ADVERTISEMENT
ADVERTISEMENT