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

Documentation for different resolution oleds #213

Closed mcer12 closed 4 years ago

mcer12 commented 6 years ago

I work with the library from time to time and always forgot to add geometry parameter for 128x32 display because it's not documented anywhere. It can be found in the pull request but since 128x32 resolution oleds are common aswell, I think it should be pointed out in readme or demo sketches how to make them work.

ReanimationXP commented 6 years ago

+1 on this

scropion86 commented 6 years ago

+1 i was just searching for the same i have to dig in the source code to find it also i didn't find any example showing how to set other geometry. i have 0.91 Inch from AE which Resolution is 128 x 32 , if somebody have a working sketch kindly share it

mcer12 commented 6 years ago

Instead of

SSD1306Wire display(0x3c, D3, D5);

Init with something like this

SSD1306Wire display(0x3c, D3, D5, GEOMETRY_128_32 );

ReanimationXP commented 6 years ago

^ this is correct. the only two options are GEOMETRY_128_32 and GEOMETRY_128_64 as of this writing. it defaults to GEOMETRY_128_64. If it's not working for you make sure you've updated to the latest version of the lib.

LennartHennigs commented 6 years ago

Hi, could you consider adding different resolutions to the library – or allowing us to define custom resolutions? I am using the WeMos OLED shield which offers 64×48 pixels. That'd be great.

Cheers l.

mcer12 commented 6 years ago

https://github.com/ThingPulse/esp8266-oled-ssd1306/pull/198

LennartHennigs commented 6 years ago

ah, thx! that helps. (will that be merged back into the master branch?)

mcer12 commented 6 years ago

I'm not in possession of such power. Only rep owner can merge pull requests. But you can make your own fork by all means.

Dne pá 28. 9. 2018 11:48 uživatel Lennart Hennigs notifications@github.com napsal:

ah, thx! that helps. (will that be merged back into the master branch?)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ThingPulse/esp8266-oled-ssd1306/issues/213#issuecomment-425383858, or mute the thread https://github.com/notifications/unsubscribe-auth/AgDGAZL1DVmv5jTowZ2258sGoBctFoJzks5uffBmgaJpZM4V4wcy .

ReanimationXP commented 6 years ago

I've added a PR with updated documentation for the resolutions that are already supported, if someone wants to merge it. #217

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.