// Source: https://github.com/FastLED/FastLED/blob/master/examples/ColorPalette/ColorPalette.ino
#include <FastLED.h>
#define LED_PIN 3
#define NUM_LEDS 256
#define LED_TYPE WS2812
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<LED_TYPE, LED_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
static uint16_t i = 0;
leds[i] = 0xffffff;
FastLED.show();
leds[i] = 0;
i = ++i % NUM_LEDS;
delay(100);
}