Can someone point me in the right direction?

Can someone point me in the right direction? I have a small test Holiday light setup using a 9’ WS2812B strip. I have it running from a Arduino Uno and it’s currently running the Adafruit library with several different animations.

I also tried the FastLED 100 Demo sketch and I really like the Juggle and BPM animations, and the trusty ol’ Rainbow, of course! But I want to add a Candy Cane and a Color Wipe animation to the FastLED sketch.

I tried copying and pasting what looked to be the most relevant portions of a stand-alone Candy Cane sketch and a Color Wipe sketch but I failed.

My code is linked below on a github page, the part I attempted to add is at the very end, and commented with // BEGIN EXPERIMENT — Pasted ColorWipe CODE — BEGIN EXPERIMENT

Thanks!

https://github.com/clarkdv/Blackintosh-GitHub/blob/master/FastLED-DemoReel100-MODIFIED.ino

Currently, the only thing the function colorwipe() does is run FastLED.show(). So it’s just re-displaying whatever was previously displayed since the pixel values are not being modified in any way in colorwipe(). Seems like it’s missing doing something there.

btw, here’s some Christmas sparkle patterns you can add to your program.

OK, here’s the whole thing, from a working sketch, that I’m trying to add to the FastLED 100 Demo:

void loop() {
colorWipe(0x00,0xff,0x00, 50);
colorWipe(0x00,0x00,0x00, 50);
}

void colorWipe(byte red, byte green, byte blue, int SpeedDelay) {
for(uint16_t i=0; i<NUM_LEDS; i++) {
setPixel(i, red, green, blue);
showStrip();
delay(SpeedDelay);
}
}
// REPLACE TO HERE

void showStrip() {
#ifdef ADAFRUIT_NEOPIXEL_H
// NeoPixel
strip.show();
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
// FastLED
FastLED.show();
#endif
}

void setPixel(int Pixel, byte red, byte green, byte blue) {
#ifdef ADAFRUIT_NEOPIXEL_H
// NeoPixel
strip.setPixelColor(Pixel, strip.Color(red, green, blue));
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
// FastLED
leds[Pixel].r = red;
leds[Pixel].g = green;
leds[Pixel].b = blue;
#endif
}

void setAll(byte red, byte green, byte blue) {
for(int i = 0; i < NUM_LEDS; i++ ) {
setPixel(i, red, green, blue);
}
showStrip();
}