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

◆ loop()

void loop ( )

Definition at line 25 of file OctoWS2811Demo.h.

25 {
26 static uint8_t hue = 0;
27 for(int i = 0; i < NUM_STRIPS; i++) {
28 for(int j = 0; j < NUM_LEDS_PER_STRIP; j++) {
29 leds[(i*NUM_LEDS_PER_STRIP) + j] = CHSV((32*i) + hue+j,192,255);
30 }
31 }
32
33 // Set the first n leds on each strip to show which strip it is
34 for(int i = 0; i < NUM_STRIPS; i++) {
35 for(int j = 0; j <= i; j++) {
37 }
38 }
39
40 hue++;
41
42 FastLED.show();
43 FastLED.delay(10);
44}
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.