From b4d28e0ee533d46ee065e7e746332026bf8d181a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Wed, 19 Oct 2022 13:56:30 +0200 Subject: [PATCH] improve LED color setting reliability --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index 34dd17c..7661a18 100644 --- a/main.c +++ b/main.c @@ -172,6 +172,8 @@ void led_rgb(uint8_t* rgb) return; } led_red(rgb[0] << 8); + led_red(rgb[0] << 8); + led_green(rgb[1] << 8); led_green(rgb[1] << 8); led_blue(rgb[2] << 8); // no idea why, but if I don't do it a second time the blue is a bit on when switched off