Merge pull request #2142 from andelf/fix/ws2812-led-count

Fix WS2812 with nled=1
This commit is contained in:
enjoy-digital 2024-12-17 19:33:39 +01:00 committed by GitHub
commit d05b6613e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -152,7 +152,7 @@ class WS2812(LiteXModule):
# Internal Signals.
led_count = Signal(max=nleds)
led_count = Signal(max=max(nleds, 2))
led_data = Signal(24)
xfer_start = Signal()
xfer_done = Signal()