Add some TODOs
This commit is contained in:
@@ -12,12 +12,15 @@ void initButton() {
|
|||||||
void buttonISRstate() {
|
void buttonISRstate() {
|
||||||
if ((millis() - lastButtonPress) > 100) {
|
if ((millis() - lastButtonPress) > 100) {
|
||||||
if (countdown < 0)
|
if (countdown < 0)
|
||||||
|
// TODO: enable metronome timer
|
||||||
countdown = 0;
|
countdown = 0;
|
||||||
else if (countdown == 0)
|
else if (countdown == 0)
|
||||||
|
// TODO: restart metronome timer to align countdown
|
||||||
countdown = COUNTDOWN;
|
countdown = COUNTDOWN;
|
||||||
else {
|
else {
|
||||||
countdown = -1;
|
countdown = -1;
|
||||||
digitalWrite(BUTTON_LED_PIN, LOW);
|
digitalWrite(BUTTON_LED_PIN, LOW);
|
||||||
|
// TODO: disable metronome timer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user