Displaying 10 minute countdown when a button is pressed on a mcufriend 3.5 tft

Hi Guys. I'm new to arduino programming. Im using a mcufriend_kbv 3.5 tft and I would like to make a code that when you press a button on the screen, it will start a 10 minute countdown displaying hh:mm:ss on the touchscreen. Is this possible without using the Clock module DS3231 or DS1302?

Thank you in advance guys.

Yes, it is possible. Use millis().

This is integrated function with no extra hardware needed.

Hi flashko,

Can you check my code? Its a little mess but I think I could use your help. I followed your advice and make use of the millis function but when I display the time counting down, the screen becomes a mess as if the tft touchscreen is not updating the numbers it is displaying and just overlapping the characters.

Hope you can help with this one.

Thanks.

Hi. Maybe but for that purpose you have to publish it. And please in code tags as required in the forum. If you have an overlapping the characters on the screen, you maybe need to erase the old one and then print the new one. Erasure is fastest and most good by printing the old but with the background color and then printing a new one with the normal color.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.