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

◆ loop()

void loop ( )

Definition at line 90 of file ParallelOutputDemo.h.

90 {
91 Serial.println("Loop....");
92 static uint8_t hue = 0; // okay static in header
93 for(int i = 0; i < NUM_STRIPS; i++) {
94 for(int j = 0; j < NUM_LEDS_PER_STRIP; j++) {
95 leds[(i*NUM_LEDS_PER_STRIP) + j] = CHSV((32*i) + hue+j,192,255);
96 }
97 }
98
99 // Set the first n leds on each strip to show which strip it is
100 for(int i = 0; i < NUM_STRIPS; i++) {
101 for(int j = 0; j <= i; j++) {
103 }
104 }
105
106 hue++;
107
108 FastLED.show();
109 // FastLED.delay(100);
110}
fl::CRGB leds[NUM_LEDS]
#define NUM_LEDS_PER_STRIP
#define NUM_STRIPS
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
uint8_t hue
Definition advanced.h:94
fl::hsv8 CHSV
Definition chsv.h:11
unsigned char uint8_t
Definition s16x16x4.h:209
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition crgb.h:622
#define Serial
Definition serial.h:304

References FastLED, hue, leds, NUM_LEDS_PER_STRIP, NUM_STRIPS, fl::CRGB::Red, and Serial.