FastLED 3.10.8
Loading...
Searching...
No Matches

◆ setup()

void setup ( )

Definition at line 33 of file RGBWEmulated.ino.

33 {
34 Serial.begin(115200);
35 //FastLED.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS).setRgbw(RgbwDefault());
36 FastLED.addLeds(&rgbwEmu, leds, NUM_LEDS);
37 FastLED.setBrightness(128); // Set global brightness to 50%
38 delay(2000); // If something ever goes wrong this delay will allow upload.
39}
CRGB leds[1]
#define 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_NO_EXCEPT
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:309

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