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

◆ setup()

void setup ( )

Definition at line 445 of file advanced.h.

445 {
446 Serial.begin(115200);
447 delay(1000);
448
449 Serial.println("Audio Reactive Visualizations");
450 Serial.println("Initializing...");
451 Serial.print("Display size: ");
452 Serial.print(WIDTH);
453 Serial.print("x");
454 Serial.println(HEIGHT);
455
456 // Initialize LEDs
458 FastLED.setBrightness(brightness.as_int());
459 FastLED.clear();
460 FastLED.show();
461
462 // Set up UI callbacks
463 brightness.onChanged([](float value) {
464 FastLED.setBrightness(value);
465 });
466
467 Serial.println("Setup complete!");
468}
CRGB leds[NUM_LEDS]
#define NUM_LEDS
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:74
#define COLOR_ORDER
Definition advanced.h:40
#define WIDTH
Definition advanced.h:34
#define LED_TYPE
Definition advanced.h:39
UISlider brightness("Brightness", 128, 0, 255, 1)
#define LED_PIN
Definition advanced.h:38
#define HEIGHT
Definition advanced.h:35

References brightness(), COLOR_ORDER, FastLED, HEIGHT, LED_PIN, LED_TYPE, leds, NUM_LEDS, and WIDTH.

+ Here is the call graph for this function: