Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

ssd1306 i2c

Open zenmanenergy opened this issue 11 years ago • 21 comments

I have been unsuccessful with getting an i2c ssd1306 screen (from ebay, it works fine on an UNO) to work on an esp-12, I have added the library at https://github.com/me-no-dev/Adafruit_SSD1306 have connected the screen to vcc/gnd scl to pin 5 and sda to pin 4. It works fine on an Arduino UNO, so I'm clearly doing something wrong on the esp.

When I upload the example for the 128x64 i2c i don't get any errors, but it also doesn't display anything.

The example i2c code doesn't include Wire.begin(4,5); in the setup(), I've tried adding that but it doesn't display anything. On the back of the screen it says Address Select 0x7A and 0x78. I have tried changing the address from display.begin(SSD1306_SWITCHCAPVCC, 0x3D); to: display.begin(SSD1306_SWITCHCAPVCC, 0x7A); and display.begin(SSD1306_SWITCHCAPVCC, 0x78);

But still nothing.

This is screen I'm using: http://www.ebay.com/itm/141536719131?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

I'm out of ideas to try. Any suggestions?

zenmanenergy avatar Jul 20 '15 22:07 zenmanenergy

Exactly same issue with chinese oled 128x64 ssd1306 marked as 0x7A addres but working in 0x3C.

marcelooggero avatar Sep 01 '21 12:09 marcelooggero