Commit 0169ac62 authored by Michael Nelson's avatar Michael Nelson

Adjust buzzer tone when signalling

parent 7925cea6
......@@ -38,7 +38,7 @@
#define PIN_OUT_WHITES 9
// Config
#define BLINK_RATE 100
#define BLINK_RATE 250
#define HOLD_DOWN_TIME 350
// State
......@@ -123,11 +123,8 @@ void hazard_frame()
void blink_speaker_frame()
{
if (!blinker_light_state && cycle_time == 1) {
digitalWrite(PIN_OUT_SPEAKER, HIGH);
}
else if (!blinker_light_state && cycle_time < 7) {
digitalWrite(PIN_OUT_SPEAKER, LOW);
if (!blinker_light_state && cycle_time < 40) {
digitalWrite(PIN_OUT_SPEAKER, !(cycle_time % 2) ? HIGH : LOW);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment