ThingPulse / esp8266-oled-ssd1306

Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
https://thingpulse.com
Other
2.01k stars 638 forks source link

no Display on OLED #327

Closed ILohs closed 3 years ago

ILohs commented 3 years ago

Hey, my OLED with I2C-Support shows nothing at all when using Lib v4.2.0, but the compiler of the Arduino IDE shows errors. I am using a Wemos with SCL = D1 and SDA = D2. The U8G2-Lib, on the other hand, works right away.

This warning comes: C:\Users\ingol\Documents\Arduino\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays\src/SSD1306Wire.h:70:5: warning: unused parameter '_i2cBus' [-Wunused-parameter] SSD1306Wire(uint8_t _address, int _sda = -1, int _scl = -1, OLEDDISPLAY_GEOMETRY g = GEOMETRY_128_64, HW_I2C _i2cBus = I2C_ONE, int _frequency = 700000) { ^

marcelstoer commented 3 years ago

Don't worry about the warning - it's just that, no error.

Issue sounds like #311.

ILohs commented 3 years ago

Solved it with remark: // oled.clear(); in setup()

ezplanet commented 3 years ago

Try to downgrade to version 4.1.0, it should work.

cjkarande commented 3 years ago

@ezplanet I am facing the same issue over I2C (No display on OLED 0.96" SSD1306) even with 4.1.0 for NodeMCU (Esp-12E). However it works perfectly fine with "Adafruit SSD1306"

SDA-D4 SCL-D5

@ILohs Not working even with clear() call in setup

Do i need to further downgrade to an earlier version?

@marcelstoer