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

◆ loop()

void loop ( )

Definition at line 42 of file ParallelOutputDemo.h.

42 {
43 Serial.println("Loop....");
44 static uint8_t hue = 0;
45 for(int i = 0; i < NUM_STRIPS; i++) {
46 for(int j = 0; j < NUM_LEDS_PER_STRIP; j++) {
47 leds[(i*NUM_LEDS_PER_STRIP) + j] = CHSV((32*i) + hue+j,192,255);
48 }
49 }
50
51 // Set the first n leds on each strip to show which strip it is
52 for(int i = 0; i < NUM_STRIPS; i++) {
53 for(int j = 0; j <= i; j++) {
55 }
56 }
57
58 hue++;
59
60 FastLED.show();
61 // FastLED.delay(100);
62}
CRGB leds[NUM_LEDS]
uint8_t hue
#define NUM_LEDS_PER_STRIP
Definition ColorBoost.h:51
#define NUM_STRIPS
Definition ColorBoost.h:52
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:74
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition crgb.h:679
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition hsv.h:15

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