From f62ca50e950d158df56d5bd6fd556cbf9b5509ab Mon Sep 17 00:00:00 2001 From: Andelf Date: Wed, 18 Dec 2024 01:01:25 +0800 Subject: [PATCH] soc/cores/led: fix ws2812 with nled=1 --- litex/soc/cores/led.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/cores/led.py b/litex/soc/cores/led.py index e6bc6d9a7..7882bee24 100644 --- a/litex/soc/cores/led.py +++ b/litex/soc/cores/led.py @@ -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()