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

◆ setup()

void setup ( )

Definition at line 90 of file ClientReal.h.

90 {
91 // Initialize LED strip
92 FastLED.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS);
93
94 // Set all LEDs to dark red initially (indicates waiting/starting state)
95 fill_solid(leds, NUM_LEDS, fl::CRGB(64, 0, 0)); // Dark red = starting up
96 FastLED.show();
97
98 // Tutorial introduction messages
99 FL_WARN("FastLED Networking Tutorial started - 10 LEDs set to dark red");
100 FL_WARN("Learning HTTP fetch API with TWO different async patterns:");
101 FL_WARN(" APPROACH 1: Promise-based (.then/.catch_) with explicit types");
102 FL_WARN(" APPROACH 2: fl::task::await_top_level pattern with explicit types");
103 FL_WARN("Toggles between approaches every 10 seconds for comparison...");
104 FL_WARN("LED colors indicate status: Red=Error, Green=Promise Success, Blue=Await Success");
105}
#define NUM_LEDS
fl::CRGB leds[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.
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color) FL_NOEXCEPT
Fill a range of LEDs with a solid color.
Definition fill.cpp.hpp:9
constexpr EOrder GRB
Definition eorder.h:19
#define FL_WARN(X)
Definition log.h:276
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Definition crgb.h:38

References DATA_PIN, FastLED, fill_solid(), FL_WARN, GRB, leds, and NUM_LEDS.

+ Here is the call graph for this function: