]> mj.ucw.cz Git - home-hw.git/commitdiff
X-mas: It works!
authorMartin Mareš <mj@ucw.cz>
Fri, 26 Dec 2025 20:05:21 +0000 (21:05 +0100)
committerMartin Mareš <mj@ucw.cz>
Fri, 26 Dec 2025 20:05:21 +0000 (21:05 +0100)
xmas-lights/firmware/main.c

index 5e12ba70853534b1468ffec6dfc634e2f65518ce..9e1104d604bb6def825f8d50f3e6e4e770e822e4 100644 (file)
@@ -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)
 {