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

◆ setup()

void setup ( )

Definition at line 32 of file RGBWEmulated.ino.

32 {
33 Serial.begin(115200);
34 //FastLED.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS).setRgbw(RgbwDefault());
35 FastLED.addLeds(&rgbwEmu, leds, NUM_LEDS);
36 FastLED.setBrightness(128); // Set global brightness to 50%
37 delay(2000); // If something ever goes wrong this delay will allow upload.
38}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
static RGBWEmulatedController< ControllerT, GRB > rgbwEmu(rgbw)
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
Definition delay.h:98
#define Serial
Definition serial.h:304

References FastLED, leds, NUM_LEDS, rgbwEmu, and Serial.