if (minutes < 10) // Less than 10 mins?, seconds?
tft.print("0"); // Ok print a leading 0
tft.print(minutes);
Works for me... not the most elegant but I have a nice display of time from a GPS receiver. Small change too.
Doc
if (minutes < 10) // Less than 10 mins?, seconds?
tft.print("0"); // Ok print a leading 0
tft.print(minutes);
Works for me... not the most elegant but I have a nice display of time from a GPS receiver. Small change too.
Doc