Right now I’m coding a multi-app GUI that performs multiple functions. One of these functions is telling the time. I’m doing this without an RTC module and am instead just using millis() and micros(). I previously ran into some trouble using millis() because I found that it was inaccurate. I then read a post about using micros() instead of millis() and I have seen much better results. However, last night I checked the accuracy of the clock, and found that after three hours or so, the clock was 3 or 4 seconds behind the real time.
I’ll post my code below and would love some feedback on how to make my clock more accurate.
P.S. The reason why I call clockFunction() so many times is because if I don’t, the time doesn’t update.
Smart_Watch_Prototype_2.ino (56.1 KB)