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

◆ setup()

void setup ( )

Definition at line 27 of file RGBW.ino.

27 {
28 Serial.begin(115200);
31
35 fl::EOrderW::W3,
36 rgbwProfile);
37
38 FastLED.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS).setRgbw(rgbw);
39 FastLED.setBrightness(128); // Set global brightness to 50%
40 delay(2000); // If something ever goes wrong this delay will allow upload.
41}
CRGB leds[1]
#define NUM_LEDS
#define DATA_PIN
Definition ClientReal.h:82
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Rgbw rgbw
constexpr EOrder GRB
Definition eorder.h:19
const DiodeProfile kRgbwDefaultProfile
Definition rgbw.cpp.hpp:39
fl::shared_ptr< const DiodeProfile > make_diode_profile(const DiodeProfile &profile) FL_NO_EXCEPT
Definition rgbw.cpp.hpp:304
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
@ kRGBWDefaultColorTemp
Definition rgbw.h:206
@ kRGBWColorimetric
Definition rgbw.h:26
#define Serial
Definition serial.h:309

References DATA_PIN, FastLED, GRB, fl::kRGBWColorimetric, fl::kRGBWDefaultColorTemp, fl::color::kRgbwDefaultProfile, leds, fl::color::make_diode_profile(), NUM_LEDS, rgbw, and Serial.

+ Here is the call graph for this function: