improve LED color setting reliability
This commit is contained in:
parent
d66bdff1d5
commit
b4d28e0ee5
2
main.c
2
main.c
|
@ -172,6 +172,8 @@ void led_rgb(uint8_t* rgb)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
led_red(rgb[0] << 8);
|
led_red(rgb[0] << 8);
|
||||||
|
led_red(rgb[0] << 8);
|
||||||
|
led_green(rgb[1] << 8);
|
||||||
led_green(rgb[1] << 8);
|
led_green(rgb[1] << 8);
|
||||||
led_blue(rgb[2] << 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
|
// no idea why, but if I don't do it a second time the blue is a bit on when switched off
|
||||||
|
|
Loading…
Reference in New Issue