This commit is contained in:
SpaceyKasey 2023-01-20 21:33:10 -05:00
commit 3b9715e2d4
1 changed files with 6 additions and 1 deletions

View File

@ -147,7 +147,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)