Skip to content

Commit

Permalink
Merge pull request #2142 from andelf/fix/ws2812-led-count
Browse files Browse the repository at this point in the history
Fix WS2812 with nled=1
  • Loading branch information
enjoy-digital authored Dec 17, 2024
2 parents fdd7c97 + f62ca50 commit d05b661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/soc/cores/led.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def __init__(self, pad, nleds, sys_clk_freq, bus_mastering=False, bus_base=None,


# Internal Signals.
led_count = Signal(max=nleds)
led_count = Signal(max=max(nleds, 2))
led_data = Signal(24)
xfer_start = Signal()
xfer_done = Signal()
Expand Down

0 comments on commit d05b661

Please sign in to comment.