Text update without blink #1136
fruktiz32
started this conversation in
Compatible displays and setup files
Replies: 1 comment 2 replies
-
The typical SSD1306 library uses a frame buffer in RAM so sequential graphics operations in the buffer, that would cause flicker, are not seen. There is usually not enough memory to use full screen buffers with TFTs, but Sprites can be used for small areas. See examples. The simplest approach is to not clear the whole screen as this is the main cause of flicker. Clearing the screen takes an appreciable time so is obviously visible. Instead just draw the updated values with the text backgound colour set. If the values do not overwrite completely then use the setTextPadding function, see examples. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I want to ask if it is possible to update text without that little blink when you set background black. As I used to work with other display libraries (ssd1306) there you first write functions and then call for display and everything updates instant without little blink.
I want to refresh text from JSON every 5 seconds and don't like that blink everytime. Now my code looks like this, it refresh every 5s:
Beta Was this translation helpful? Give feedback.
All reactions