FastLED 3.10.10
Loading...
Searching...
No Matches

◆ setup()

void setup ( )

Definition at line 24 of file BlinkParallel.ino.

24 {
25 Serial.begin(115200);
26 delay(100); // Give serial time to initialize
27
28 delay(2000);
29
30 Serial.println("BlinkParallel setup starting");
31 Serial.print("NUM_LEDS: ");
32 Serial.println(NUM_LEDS);
33
34
35 //FastLED.addLeds<WS2812, 5>(leds, NUM_LEDS); // GRB ordering is assumed
36 FastLED.addLeds<WS2812, 1>(leds, NUM_LEDS); // GRB ordering is assumed
37 FastLED.addLeds<WS2812, 2>(leds, NUM_LEDS); // GRB ordering is assumed
38 FastLED.addLeds<WS2812, 3>(leds, NUM_LEDS); // GRB ordering is assumed
39 FastLED.addLeds<WS2812, 4>(leds, NUM_LEDS); // GRB ordering is assumed
40
41 Serial.print("Initialized 4 LED strips with ");
42 Serial.print(NUM_LEDS);
43 Serial.println(" LEDs each");
44
45 Serial.println("Setup complete - starting blink animation");
46
47 delay(1000);
48}
CRGB leds[1]
#define NUM_LEDS
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
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
#define Serial
Definition serial.h:314

References FastLED, leds, NUM_LEDS, and Serial.