I purchased a 3.5" TFT 320x480 Breakout Board.
I want to display the time which I receive from a GPS sensor.
The time is displayed on the tft, but when the minute or hour is changed, the new letter is above the old letter.
For example when it's 6:12 and it changes to 6:13, the "3" overlays the "2" and there is a combination out of both letters.
Code: Select all
void printtime()
{
if(timeavailable == true)
{
tft.setTextSize(2);
tft.setCursor(10,10);
tft.setTextColor(HX8357_WHITE);
tft.print(date);
tft.print(".");
tft.print(month);
tft.print(".");
tft.println(year);
tft.setCursor(120,10);
tft.print(hour);
tft.print(":");
tft.print(minute);
tft.print(" UTC");
}
}