From 733b05eaebc001443e4e4c6622810a86e8a65070 Mon Sep 17 00:00:00 2001 From: localhorst Date: Tue, 6 Jan 2026 22:06:02 +0100 Subject: [PATCH] fix confetti animation --- main/animation.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/animation.c b/main/animation.c index 3a15c24..654ae59 100644 --- a/main/animation.c +++ b/main/animation.c @@ -153,16 +153,16 @@ static void anim_confetti(void) uint16_t num_leds = led_get_num_leds_a() + led_get_num_leds_b(); uint16_t pos = random16(num_leds); - hsv_t hsv = {(uint8_t)(global_hue + random8()), 200, 255}; + hsv_t hsv = {(uint8_t)(global_hue + random8()), 255, 255}; rgb_t color = led_hsv_to_rgb(hsv); if (pos < led_get_num_leds_a()) { - led_add_pixel_a(pos, color); + led_set_pixel_a(led_get_num_leds_a() - pos - 1, color); } else { - led_add_pixel_b(pos - led_get_num_leds_a(), color); + led_set_pixel_b(pos - led_get_num_leds_a(), color); } } @@ -389,7 +389,7 @@ void animation_update(void) anim_rainbow_glitter(); break; case ANIM_CONFETTI: - // anim_confetti(); + anim_confetti(); break; case ANIM_SINELON: anim_sinelon();