I'm trying to get a fade to happen when an LED turns on/off during the color wipe rather than just abruptly turning on/off. I'm not quite sure how to do this though.
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel strip = Adafruit_NeoPixel(8, 3, NEO_RGBW + NEO_KHZ800);
void setup() {
strip.begin();
}
void loop() {
colorWipe(strip.Color(255, 255, 255), 150); // Red
colorWipe(strip.Color(0, 0, 0), 150); // Red
delay(5000);
}
void colorWipe(uint32_t color, uint8_t wait) {
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, color);
strip.show();
delay(1000);
}
}