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.02k stars 640 forks source link

my oled won't display... #174

Closed giecuk closed 4 years ago

giecuk commented 6 years ago

hello, what should i change if my oled not display anything, it's not broken oled, because if i used another library it will work.

TD-er commented 6 years ago

Make sure you don't forget to set these:

sendCommand(SETVCOMDETECT); //0xDB, (additionally needed to lower the contrast)
sendCommand(0x40);          //0x40 default, to lower the contrast, put 0

On some displays that makes the difference between working and not working.

See also my PR: #171 That includes about all the PR's and suggestions made here and elsewhere about these displays.

SilverNodashi commented 6 years ago

Make sure you don't forget to set these:

sendCommand(SETVCOMDETECT); //0xDB, (additionally needed to lower the contrast)
sendCommand(0x40);            //0x40 default, to lower the contrast, put 0

On some displays that makes the difference between working and not working.

See also my PR: #171 That includes about all the PR's and suggestions made here and elsewhere about these displays.

Where do you set those?

I added it to setup() but got the following error:

'sendCommand' was not declared in this scope

TD-er commented 6 years ago

I guess a lot may have changed since I added that comment. Just about all files in the repository have changed since.

Maybe you could share a bit of your code indicating where you call this sendCommand?

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.