Add button press handle, added print time calc
This commit is contained in:
@ -43,4 +43,10 @@ void playTune(int tuneIndex) {
|
||||
delay(noteDuration[i] + 20);
|
||||
noTone(PIN_BUZZER); // Stop the tone
|
||||
}
|
||||
}
|
||||
|
||||
void beep() {
|
||||
tone(PIN_BUZZER, 1000, 100);
|
||||
delay(100);
|
||||
noTone(PIN_BUZZER);
|
||||
}
|
Reference in New Issue
Block a user