Commit 2bb7adc6 authored by Michael Nelson's avatar Michael Nelson

Stash away horn for debugging

parent 3c51816d
......@@ -145,8 +145,8 @@ void blink_frame(bool left, bool right, int tone_divisor = 2)
blinker_light_state = !blinker_light_state;
}
/* if (cycle_time == 1 && !blinker_light_state) */
/* blink_speaker_frame(tone_divisor); */
if (cycle_time == 1 && !blinker_light_state)
blink_speaker_frame(tone_divisor);
// Actual light
if (left)
......@@ -193,6 +193,11 @@ void blink_speaker_frame(int divisor)
/* digitalWrite(PIN_OUT_SPEAKER, !(cycle_time % divisor) ? HIGH : LOW); */
/* } */
/* tone(PIN_OUT_SPEAKER, 2000, 20); */
// Horn method
/* digitalWrite(PIN_OUT_HORN, HIGH); */
/* delay(1); */
/* digitalWrite(PIN_OUT_HORN, LOW); */
}
// Each frame, this increments L/R/B hold time variables while the user is holding a button (or both) down.
......
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