Print new number on screen and removing previous characters
Posted: Thu Dec 23, 2021 4:14 pm
hi,
On ESP32 TTGO like below to print number or text, the the printing start at de defined position X and Y. (start to print from left)
when print a number, it could be good to justify it a right and clear the previous characters. May be there is way ?
I tried these 2 ways but not good and difficult to manage well the offset and can not remove the previous first digit!
1- do not use offset , the problem is that numbers are printed from left to right and previous last digit still on display 2- Print of 9999 in green at X and Y position then print 999 in orange at X+offset and Y position. Previous fist digit "9" in green is still on the display too
Do you have a way to solve that? ( cleardisplay is not nice)
thx for your prompt reply
On ESP32 TTGO like below to print number or text, the the printing start at de defined position X and Y. (start to print from left)
when print a number, it could be good to justify it a right and clear the previous characters. May be there is way ?
I tried these 2 ways but not good and difficult to manage well the offset and can not remove the previous first digit!
1- do not use offset , the problem is that numbers are printed from left to right and previous last digit still on display 2- Print of 9999 in green at X and Y position then print 999 in orange at X+offset and Y position. Previous fist digit "9" in green is still on the display too
Do you have a way to solve that? ( cleardisplay is not nice)
thx for your prompt reply