clock add
This commit is contained in:
parent
f8b56090b2
commit
66a3c0304a
1 changed files with 6 additions and 1 deletions
|
@ -145,7 +145,12 @@ void loop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long currentTime = millis();
|
unsigned long currentTime = millis();
|
||||||
}
|
|
||||||
|
if ((currentTime - LastStepTime) > ClockTick){
|
||||||
|
ClockTime++;
|
||||||
|
LastStepTime = currentTime;
|
||||||
|
}}
|
||||||
|
|
||||||
|
|
||||||
// Interrupt is called once a millisecond,
|
// Interrupt is called once a millisecond,
|
||||||
SIGNAL(TIMER0_COMPA_vect)
|
SIGNAL(TIMER0_COMPA_vect)
|
||||||
|
|
Loading…
Reference in a new issue