From 3e0680dbecfa54a1fe4fd9b4bccfaa6e53628355 Mon Sep 17 00:00:00 2001 From: whowechina Date: Tue, 26 Aug 2025 21:13:34 +0800 Subject: [PATCH] Better button light color --- Production/Firmware/diva_pico.uf2 | Bin 111616 -> 111616 bytes firmware/src/main.c | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Production/Firmware/diva_pico.uf2 b/Production/Firmware/diva_pico.uf2 index d6c31703f25ca6a6c2bba056ad974e0cd56fe99d..6a277dfc305b85f06bb6f790657f7d0e75c727a9 100644 GIT binary patch delta 87 zcmZp8!PfACZ9@^8^?yYM1%?mae;AY>C hAkPfU3s7X4@L}^>HgP8AfPjGJ;~d+Mb1+)21^`IR9kBoa delta 87 zcmZp8!PfACZ9@^8b%P><0>cOIKMcwNN*s!e6AFMl7a*@ei9wNR0!Ypl$YTKVm?ty< gd1hc~I8XB69b8J7(!DzV}0JR7kTmS$7 diff --git a/firmware/src/main.c b/firmware/src/main.c index ca95ee5..4fe95de 100644 --- a/firmware/src/main.c +++ b/firmware/src/main.c @@ -142,17 +142,17 @@ static void run_lights() { uint64_t now = time_us_64(); uint32_t button_colors[] = { - rgb32(0, 0x80, 0, false), - rgb32(0x70, 0x08, 0x50, false), - rgb32(0, 0, 0x80, false), - rgb32(0x80, 0, 0, false), - rgb32(0x70, 0x70, 0x00, false) + rgb32(0, 0xff, 0, false), + rgb32(0xe0, 0x10, 0xe0, false), + rgb32(0, 0, 0xff, false), + rgb32(0xff, 0, 0, false), + rgb32(0xf0, 0x50, 0x00, false) }; uint16_t buttons = button_read(); for (int i = 0; i < 5; i++) { bool pressed = buttons & (1 << i); - uint32_t color = pressed ? button_colors[i] : 0x808080; + uint32_t color = pressed ? button_colors[i] : 0x505050; if (motor_running && (now / 50000 % 2 == 0)) { color = 0; }