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

◆ setup()

void setup ( )

Definition at line 90 of file NetTestReal.h.

90 {
91 // Initialize LED strip
93
94 // Set all LEDs to dark red initially (indicates waiting/starting state)
95 fill_solid(leds, NUM_LEDS, 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::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}
CRGB leds[NUM_LEDS]
#define NUM_LEDS
#define DATA_PIN
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:74
WS2812 controller class.
Definition FastLED.h:218
void fill_solid(struct CRGB *targetArray, int numToFill, const struct CRGB &color)
Fill a range of LEDs with a solid color.
Definition fill.cpp:9
@ GRB
Green, Red, Blue (0102)
Definition eorder.h:16
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:86
#define FL_WARN
Definition warn.h:12

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

+ Here is the call graph for this function: