FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setup()

void setup ( )

Definition at line 22 of file RGBW.ino.

22 {
23 Serial.begin(115200);
24 FastLED.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS).setRgbw(RgbwDefault());
25 FastLED.setBrightness(128); // Set global brightness to 50%
26 delay(2000); // If something ever goes wrong this delay will allow upload.
27}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
WS2812 controller class.
Definition FastLED.h:193
@ GRB
Green, Red, Blue (0102)
Definition eorder.h:17

References DATA_PIN, FastLED, GRB, leds, and NUM_LEDS.