Update break time and beep freq

This commit is contained in:
cryptogopher
2022-10-09 14:26:33 +02:00
parent 4a46ee65b9
commit 315aa9996c

View File

@@ -3,7 +3,7 @@ const uint BUZZER_PIN = 0;
const uint BUTTON_LED_PIN = 5; const uint BUTTON_LED_PIN = 5;
const uint BUTTON_PIN = 6; const uint BUTTON_PIN = 6;
const int BREAK_LENGTH = 300000; const int BREAK_LENGTH = 240000;
const int BREAK_STEP = 2000; const int BREAK_STEP = 2000;
volatile int countdown = 0; volatile int countdown = 0;
@@ -26,7 +26,7 @@ void loop() {
digitalWrite(BUTTON_LED_PIN, LOW); digitalWrite(BUTTON_LED_PIN, LOW);
delay(max(step-BREAK_STEP/2, 0)); delay(max(step-BREAK_STEP/2, 0));
} else { } else {
tone(BUZZER_PIN, 1000, 100); tone(BUZZER_PIN, 300, 100);
delay(1000); delay(1000);
} }
} }