Chat freely about anything...

User avatar
By henkoegema
#62499 I want to setup a ESP8266-12E with a OLED display. (Arduino IDE)
There are many examples on you-tube how to do that, however........
Most examples refer to this picture: (SCL -> D1 and SDA -> D2)

picture1.png
picture1.png (5.1 KiB) Viewed 3336 times


But I have this hardware:

Where do I connect SCL and SDA (SCL -> GPIO ?? and SDA -> GPIO ??) and in which file do I specify that?
Attachments
picture2.jpg
This is what I have.
picture2.jpg (5.34 KiB) Viewed 3336 times
User avatar
By henkoegema
#62514
gdsports wrote:See NodeMCU pin mapping in the following.

https://github.com/esp8266/Arduino/blob ... nodemcu-09

D1 = GPIO5
D2 = GPIO4

The following image shows GPIO numbers on an ESP8266 module.

wiki/lib/exe/detail.php?id=esp8266-module-family&media=esp-12f.jpg



Thanks for your assistance. :)

It's working now.

I used D6 -> SCL (GPIO12) & D7 -> SDA (GPIO13)

I only had problems with the address select.
On the backside of the display was written : Address Select 0x78.
When I used that address it didn't work. Then I changed it to 0x3c and it was OK.

So I am still wondering what that address 0x78 is used for.
Attachments
address select.jpg