Play start of jeopardy theme when switching on

This commit is contained in:
Thomas Kolb 2024-10-27 17:27:33 +01:00
parent d4194d9942
commit 9f0bf9d405

View file

@ -174,33 +174,36 @@ static void update_countdown_fsm(uint32_t time_ms)
sseg_set_pwm_times(0, 255, 0); sseg_set_pwm_times(0, 255, 0);
sseg_set_pwm_times(1, 255, 0); sseg_set_pwm_times(1, 255, 0);
sseg_set_pwm_times(2, 255, 0); sseg_set_pwm_times(2, 255, 0);
buzzer_on(2963);
break; break;
case 500: case 500:
sseg_set_char(0, '#', false); sseg_set_char(0, '#', false);
buzzer_on(1000); buzzer_on(3951);
break; break;
case 1000: case 1000:
sseg_set_char(1, '|', false); sseg_set_char(1, '|', false);
buzzer_on(1414); buzzer_on(2963);
break; break;
case 1500: case 1500:
sseg_set_char(1, '#', false); sseg_set_char(1, '#', false);
buzzer_on(2000); buzzer_on(1976);
break; break;
case 2000: case 2000:
sseg_set_char(2, '|', false); sseg_set_char(2, '|', false);
buzzer_on(2828); buzzer_on(2963);
break; break;
case 2500: case 2500:
sseg_set_char(2, '#', false); sseg_set_char(2, '#', false);
buzzer_on(4000); buzzer_on(3951);
break; break;
case 200:
case 700: case 700:
case 1200: case 1200:
case 1700: case 1700:
@ -254,6 +257,9 @@ static void update_countdown_fsm(uint32_t time_ms)
if((m_countdown_off_time - time_ms) > 10 * ONE_HOUR) { if((m_countdown_off_time - time_ms) > 10 * ONE_HOUR) {
m_countdown_off_time = time_ms + 10 * ONE_HOUR; m_countdown_off_time = time_ms + 10 * ONE_HOUR;
} }
// ensure the buzzer is off after the time was extended
buzzer_off();
} }
// beep codes // beep codes