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

◆ loop()

void loop ( )

Definition at line 12 of file RGBSetDemo.ino.

12 {
13 static uint8_t hue;
14 for(int i = 0; i < NUM_LEDS/2; i++) {
15 // fade everything out
16 leds.fadeToBlackBy(40);
17
18 // let's set an led value
19 leds[i] = CHSV(hue++,255,255);
20
21 // now, let's first 20 leds to the top 20 leds,
22 leds(NUM_LEDS/2,NUM_LEDS-1) = leds(NUM_LEDS/2 - 1 ,0);
23 FastLED.delay(33);
24 }
25}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
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

References FastLED, leds, and NUM_LEDS.