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

◆ loop()

void loop ( )

Definition at line 22 of file OctoWS2811Demo.ino.

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