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

◆ setup()

void setup ( )

Definition at line 447 of file advanced.h.

447 {
448 Serial.begin(115200);
449 delay(1000);
450
451 Serial.println("Audio Reactive Visualizations");
452 Serial.println("Initializing...");
453 Serial.print("Display size: ");
454 Serial.print(WIDTH);
455 Serial.print("x");
456 Serial.println(HEIGHT);
457
458 // Initialize LEDs
460 FastLED.setBrightness(brightness.as_int());
461 FastLED.clear();
462 FastLED.show();
463
464 // Set up UI callbacks
465 brightness.onChanged([](float value) {
466 FastLED.setBrightness(value);
467 });
468
469 Serial.println("Setup complete!");
470}
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:42
#define WIDTH
Definition advanced.h:36
#define LED_TYPE
Definition advanced.h:41
UISlider brightness("Brightness", 128, 0, 255, 1)
#define LED_PIN
Definition advanced.h:40
#define HEIGHT
Definition advanced.h:37

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

+ Here is the call graph for this function: