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

◆ fill_rainbow()

void fill_rainbow ( CRGB * all_leds)

Definition at line 189 of file Esp32S3I2SDemo.ino.

189 {
190 static int s_offset = 0;
191 for (int j = 0; j < NUMSTRIPS; j++) {
192 for (int i = 0; i < NUM_LEDS_PER_STRIP; i++) {
193 int idx = (i + s_offset) % NUM_LEDS_PER_STRIP + NUM_LEDS_PER_STRIP * j;
194 all_leds[idx] = CHSV(i, 255, 255);
195 }
196 }
197 s_offset++;
198}
#define NUM_LEDS_PER_STRIP
#define NUMSTRIPS
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition chsv.h:16

References NUM_LEDS_PER_STRIP, and NUMSTRIPS.

Referenced by loop().

+ Here is the caller graph for this function: