From 88fee54f96f68282e1784168c81a087a6d914560 Mon Sep 17 00:00:00 2001 From: Ashley Strahle Date: Fri, 3 Jul 2026 08:36:14 +0000 Subject: [PATCH] Remove beat 1 differentiation - all beats flash white 50ms --- src/main.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7e8263d..ae1c84f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -46,19 +46,13 @@ void midi_task(void* parameter) { if (current_beat != last_beat) { last_beat = current_beat; flash_start = now + flash_latency; - // Beat 1 = red on current_beat % beats_per_bar == 0, others = white - if (current_beat % beats_per_bar == 0) { - mux.set_led_color(6, 255, 0, 0); - } else { - mux.set_led_color(6, 255, 255, 255); - } + // All beats flash white + mux.set_led_color(6, 255, 255, 255); } if (flash_start > 0 && now >= flash_start) { mux.show(); - uint32_t hold = (last_beat % beats_per_bar == 0) ? 100 : 50; - uint32_t elapsed = now - flash_start; - if (elapsed >= hold) { + if (now - flash_start >= 50) { mux.set_led_color(6, 20, 20, 20); mux.show(); flash_start = 0;