Getting rid of trailing digit #1814
Answered
by
Bodmer
mike-rankin
asked this question in
Q&A - General
-
Love this library and have a small issue that's killing me. Trying to print a sensor value that when drops from 100 to 99 will remove the trailing 0. Right now it shows 990 instead of 99. Possibly an if number less than 100, tft.drawChar(' ',x,y); but wondering if there is an easier way? Tried this but no luck:
|
Beta Was this translation helpful? Give feedback.
Answered by
Bodmer
May 5, 2022
Replies: 1 comment 1 reply
-
There are a few thing that are not quite right:
Here is a working sketch:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Bodmer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are a few thing that are not quite right:
Here is a working sketch: