From: Martin Mareš Date: Fri, 26 Dec 2025 20:05:21 +0000 (+0100) Subject: X-mas: It works! X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=0d8636c3c5fc89813a324d651f387fa7defb2b41;p=home-hw.git X-mas: It works! --- 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) {