Weird RGB behaviour.
luigifcruz opened this issue · comments
I'm not sure if this is a hardware or software problem, but the RGB LEDs of my Butterstick appear to be behaving strangely. I tested all the user_led_color
combinations below. It looks like only the RED LED can be ON at any given time. Is this intended or faulty hardware?
# 000: N/A
# 001: R
# 010: B
# 011: R
# 100: G
# 101: R
# 110: G+B
# 111: R
This is expected with the current logic in LiteX. The circuitry for the LEDs is set up in a multiplexing manner. So the basic drive logic that is using user_led_color
as an input only supports selecting one of R/G/B.
In order to get multiple colours the logic behind that would need to multiplex between the different colours, which it currently doesn't do, instead it simply uses the value passed to user_led_color
to drive the mosfets shown below.