Using Millis for keeping time


hello, everyone, new arduino , first project! in project, using millis() keep track of time isn't accurate. timer 14 seconds slow every hour. know internal clock of arduino isn't exact think 14 seconds big of error. wondering why case. because code long , that's why doesn't keep track of time properly? don't have or while loops block code. appreciated. thank you!

i attached code @ bottom, feedback on helpful well.

long unsigned int time;
long unsigned int btntimer = 0;

long unsigned int ???
use
unsigned long


.


Arduino Forum > Using Arduino > Project Guidance > Using Millis for keeping time


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts