Classic FastLED rainbow using fill_rainbow function
Distance between hues (lower = wider rainbow bands, higher = tighter)
Classic FastLED rainbow using fill_rainbow function
void rainbow() {
fill_rainbow(leds, NUM_LEDS, gHue, 7);
}Click "Copy Sketch" to get a complete Arduino program. Paste it into Arduino IDE, connect your WS2812B strip to pin 6, and upload!
This exact code is running in the simulation above. The FastLED emulation layer translates these function calls into visual output that matches real hardware behavior.
Classic FastLED rainbow using fill_rainbow function
Distance between hues (lower = wider rainbow bands, higher = tighter)