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

◆ fill_rainbow()

void fill_rainbow ( CRGB * all_leds)
Examples
ColorTemperature.ino, and DemoReel100.ino.

Definition at line 166 of file Esp32S3I2SDemo.ino.

166 {
167 static int s_offset = 0;
168 for (int j = 0; j < NUMSTRIPS; j++) {
169 for (int i = 0; i < NUM_LEDS_PER_STRIP; i++) {
170 int idx = (i + s_offset) % NUM_LEDS_PER_STRIP + NUM_LEDS_PER_STRIP * j;
171 all_leds[idx] = CHSV(i, 255, 255);
172 }
173 }
174 s_offset++;
175}
#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(), and rainbow().

+ Here is the caller graph for this function: