18#define YELLOW 0xFFFF00
20#define ORANGE 0xE05800
25 Serial.println(
"ColorWipe Using FastLED");
26 LEDS.addLeds<OCTOWS2811,GRB>(leds,NUM_LEDS/8);
27 LEDS.setBrightness(60);
31 int microsec = 6000000 / NUM_LEDS;
32 colorWipe(RED, microsec);
33 colorWipe(GREEN, microsec);
34 colorWipe(BLUE, microsec);
35 colorWipe(YELLOW, microsec);
36 colorWipe(PINK, microsec);
37 colorWipe(ORANGE, microsec);
38 colorWipe(WHITE, microsec);
41void colorWipe(
int color,
int wait)
43 for (
int i=0; i < NUM_LEDS; i++) {
46 delayMicroseconds(wait);
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
Representation of an RGB pixel (Red, Green, Blue)