DFU_ARGS=-d 4242:0015,4242:0014
include $(ROOT)/mk/bluepill.mk
+
+upload: xmas.dfu
+ rsync xmas.dfu root@berry:xmas-lights/
+ ssh root@berry "cd xmas-lights && dfu-util $(DFU_ARGS) -D xmas.dfu"
/*** Effects ***/
-#if 0
+#if 1
static void effect(void)
{
for (uint j=0; j < NPIX_NUM_LEDS; j++)
neopixel_set(j, neopixel_leds[j][0]*DIM, neopixel_leds[j][1]*DIM, neopixel_leds[j][2]*DIM);
neopixel_set(b, 0, 0, 255);
- neopixel_set((b + NPIX_NUM_LEDS/3) % NPIX_NUM_LEDS, 0, 255, 0);
- neopixel_set((b + 2*NPIX_NUM_LEDS/3) % NPIX_NUM_LEDS, 255, 0, 0);
+ neopixel_set((b + NPIX_NUM_LEDS/3) % NPIX_NUM_LEDS, 0, 0, 255);
+ neopixel_set((b + 2*NPIX_NUM_LEDS/3) % NPIX_NUM_LEDS, 0, 0, 255);
b = (b + 1) % NPIX_NUM_LEDS;
}