Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Nigel Goodwin said:Just generate a regular interrupt (I would use tmr2), say every 10mS, and increment a counter in the ISR. When the counter reaches 100, then increment the seconds counter and set a flag to show it's changed. The main program just needs to check the flag, and update the display when the flag is set, then clear the flag again. The ISR obviously keeps a count of minutes and hours as well.
ISR(TIMER2_OVF_vect)
{
//increment count here and
// increment seconds and
// update my dispaly here
}