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

◆ loop()

void loop ( )

Definition at line 40 of file ParallelOutputDemo.ino.

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

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