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

◆ setup()

void setup ( )

Definition at line 21 of file MultipleStripsInOneArray.ino.

21 {
22 // tell FastLED there's 60 NEOPIXEL leds on pin 2, starting at index 0 in the led array
23 FastLED.addLeds<NEOPIXEL, 2>(leds, 0, NUM_LEDS_PER_STRIP);
24
25 // tell FastLED there's 60 NEOPIXEL leds on pin 3, starting at index 60 in the led array
26 FastLED.addLeds<NEOPIXEL, 3>(leds, NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
27
28 // tell FastLED there's 60 NEOPIXEL leds on pin 4, starting at index 120 in the led array
29 FastLED.addLeds<NEOPIXEL, 4>(leds, 2 * NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
30
31}
fl::CRGB leds[NUM_LEDS]
#define NUM_LEDS_PER_STRIP
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.

References FastLED, leds, and NUM_LEDS_PER_STRIP.