From 0d8636c3c5fc89813a324d651f387fa7defb2b41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Mare=C5=A1?= Date: Fri, 26 Dec 2025 21:05:21 +0100 Subject: [PATCH] X-mas: It works! --- xmas-lights/firmware/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmas-lights/firmware/main.c b/xmas-lights/firmware/main.c index 5e12ba7..9e1104d 100644 --- a/xmas-lights/firmware/main.c +++ b/xmas-lights/firmware/main.c @@ -95,9 +95,9 @@ static void delay_ms(uint ms) /*** Neopixels ***/ #define NPIX_PERIOD 90 // timer runs on 72 MHz, so 90 periods = 1250 ns -#define NPIX_RESET 19 // length of reset pulse in LED slots (24 periods) +#define NPIX_RESET 10 // length of reset pulse in LED slots (24 periods) // The chip needs longer reset pulse than documented. -#define B0 30 // Right length should be 32 and 64 +#define B0 30 #define B1 60 static byte neopixel_leds[NPIX_NUM_LEDS][3]; @@ -396,7 +396,7 @@ static void usb_init(void) /*** Effects ***/ -#if 0 +#if 1 static void effect(void) { -- 2.47.3