Closed mcer12 closed 4 years ago
+1 on this
+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
Instead of
SSD1306Wire display(0x3c, D3, D5);
Init with something like this
SSD1306Wire display(0x3c, D3, D5, GEOMETRY_128_32 );
^ 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.
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.
ah, thx! that helps. (will that be merged back into the master branch?)
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 .
I've added a PR with updated documentation for the resolutions that are already supported, if someone wants to merge it. #217
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.
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.
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.