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
1.99k stars 637 forks source link

Ability to drawString to an externally defined buffer #286

Closed PR77 closed 3 years ago

PR77 commented 4 years ago

Aim: To be able to render a long string (larger than the display size) to an external buffer as a "bitmap" and then display a suitable portion of the bitmap on the display.

I have looked into the draw functions and considered writing my own which uses the Font Tables to render a char string to an external buffer. I would then display the buffer as a "bitmap" to the display, and scrolling it pixel-by-pixel every x(ms).

I have a very long string of variable length which will not fill on the screen (even when using drawStringMaxWidth) and I do not want (but open to suggestions) to truncate the string into sections (String().SubString() is very slow). So if the string could be rendered to memory I could display as a bitmap with different start and size parameters.

Any ideas or suggestions?

stale[bot] commented 3 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.