bitbank2 / OneBitDisplay

A full featured Arduino display library for 1-bit per pixel OLED, LCD and e-paper displays
Apache License 2.0
195 stars 21 forks source link

[DOUBT] How to clear the lines or display without blink #30

Closed Girum closed 2 years ago

Girum commented 2 years ago

Hi! When I use the library, everytime I want to clear the screen, a have to use the odbFill... but it blinks the enteire screen, even in 800kHz. How to print the string without use the fill ou how to avoid the blink screen?

bitbank2 commented 2 years ago

When not using a backbuffer, text will overwrite only the area written. If you want to blank a line, just write a line of spaces at that spot.

joex92 commented 2 years ago

what if I need to display like Plotter Values, so each loop updates the values, I would need to clear the display every loop...

bitbank2 commented 2 years ago

The OLED can be overwritten without clearing it first. That will remove the flashing. You can do this without a back buffer, but it's easier to manage changing a few pixels at a time when you have a 1K buffer to hold the data.