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

◆ loop()

void loop ( )

Definition at line 28 of file OctoWS2811Demo.h.

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

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