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

◆ loop()

void loop ( )

Definition at line 30 of file MultiArrays.ino.

30 {
31 for(int i = 0; i < NUM_LEDS_PER_STRIP; i++) {
32 // set our current dot to red, green, and blue
33 redLeds[i] = CRGB::Red;
36 FastLED.show();
37 // clear our current dot before we move on
41 delay(100);
42 }
43
44 for(int i = NUM_LEDS_PER_STRIP-1; i >= 0; i--) {
45 // set our current dot to red, green, and blue
46 redLeds[i] = CRGB::Red;
49 FastLED.show();
50 // clear our current dot before we move on
54 delay(100);
55 }
56}
#define NUM_LEDS_PER_STRIP
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
CRGB blueLeds[NUM_LEDS_PER_STRIP]
CRGB greenLeds[NUM_LEDS_PER_STRIP]
CRGB redLeds[NUM_LEDS_PER_STRIP]
@ Green
<div style='background:#008000;width:4em;height:4em;'></div>
Definition crgb.h:547
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
Definition crgb.h:501
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition crgb.h:611
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Definition crgb.h:499

References CRGB::Black, CRGB::Blue, blueLeds, FastLED, CRGB::Green, greenLeds, NUM_LEDS_PER_STRIP, CRGB::Red, and redLeds.