improve LED color setting reliability

This commit is contained in:
King Kévin 2022-10-19 13:56:30 +02:00
parent d66bdff1d5
commit b4d28e0ee5
1 changed files with 2 additions and 0 deletions

2
main.c
View File

@ -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