Printing data on display #1739
-
Good day, I assume that my question is simple, but I don't know the solution: For example, when I want to display a float (tft.drawFloat(xxx,3,90,140);) that works fine, but the next print in the same place does not clear the field first. How can I make sure this happens? Many thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It depends which font you are using. Most fonts allow a background colour to be specified. The setTextPadding() function can also be used to pad out the backgrounbd zone to a specified width in pixels. Some examples demonstrate this. Example code:
|
Beta Was this translation helpful? Give feedback.
It depends which font you are using. Most fonts allow a background colour to be specified. The setTextPadding() function can also be used to pad out the backgrounbd zone to a specified width in pixels. Some examples demonstrate this.
Example code: