Add button press handle, added print time calc

This commit is contained in:
2024-11-01 20:08:12 +01:00
parent d3d74938d3
commit 3299c3d66a
4 changed files with 142 additions and 46 deletions

View File

@ -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);
}