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

◆ setup()

void setup ( )

Definition at line 88 of file Parallel_IO.ino.

88 {
89 delay(500); // Power-up delay for LED strips
90
91 Serial.begin(115200);
92 while (!Serial && millis() < 3000) {
93 delay(100);
94 }
95 Serial.println("\n\n=== RP2040/RP2350 Automatic Parallel WS2812 Example ===\n");
96 Serial.println("This example demonstrates automatic parallel grouping.\n");
97
98 // Standard FastLED.addLeds() calls - automatic parallel grouping!
99 // Because these pins are consecutive (2, 3, 4, 5), they will be
100 // automatically grouped into a single 4-lane parallel output.
105
106 Serial.println("Controller initialized!");
107 Serial.println("Automatic parallel grouping detected consecutive GPIO pins 2-5");
108 Serial.println("Using 4-lane parallel output with single PIO state machine and DMA channel");
109 Serial.println();
110 Serial.println("Compare this with the manual Parallel_IO.ino example - same performance,");
111 Serial.println("but much simpler API! Just use standard FastLED.addLeds() calls.\n");
112}
CRGB leds2[lengths[RedStrip]]
CRGB leds3[lengths[BlueStrip]]
CRGB leds1[lengths[GreenStrip]]
CRGB leds0[lengths[BlackStrip]]
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
#define LEDS_PER_STRIP
#define PIN_STRIP_2
#define RGB_ORDER
#define PIN_STRIP_1
#define PIN_STRIP_0
#define PIN_STRIP_3
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
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:304

References FastLED, leds0, leds1, leds2, leds3, LEDS_PER_STRIP, PIN_STRIP_0, PIN_STRIP_1, PIN_STRIP_2, PIN_STRIP_3, RGB_ORDER, and Serial.