Time to pay back---a FlickerFree library that supports printing with RIGHT justification

KrisKasprzak

Well-known member
All,

You may be aware of my FlickerFree library that lets you print text to a TFT LCD and avoids annoying text flickering upon updates.

Hot off the press is an updated version that now supports drawing text with RIGHT justification for both proportional or non-proportional fonts. Since this lib relies on getting text width, this code only works with libraries that have the measureTextWidth() method. This lib could easily be adapted to support Adafruit_GFX-based libs (getTextBounds methods) with a few changes.



Here's the repo

Have a flicker free day!

Kris

PS original FlickerFree repo: https://github.com/KrisKasprzak/FlickerFreePrint
 
But it dances back and forth, doesn't it?
But ok, it is no flicker - it's just too slow :)
Its common technique to write the differences to the previous frame only - but even that does not prevent flicker completely.
The only way to *really* prevent flicker is to sync with the display frames.
 
Last edited:
Bouncing is expected with right justified and non-proportional fonts. I mention in my repo, right justified is more for printing proportional fonts where you want to align everything to the right.

What do you mean by slow?

There is a delay in the code to slow update times. Your suggestions are sound, but will not alleviate the bounce.
 
Back
Top