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

◆ loop()

void loop ( )

Definition at line 18 of file RGBSetDemo.ino.

18 {
19 static uint8_t hue;
20 for(int i = 0; i < NUM_LEDS/2; i++) {
21 // fade everything out
22 leds.fadeToBlackBy(40);
23
24 // let's set an led value
25 leds[i] = CHSV(hue++,255,255);
26
27 // now, let's first 20 leds to the top 20 leds,
28 leds(NUM_LEDS/2,NUM_LEDS-1) = leds(NUM_LEDS/2 - 1 ,0);
30 }
31}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
#define FASTLED_TESTING
uint8_t hue
Definition advanced.h:94
fl::hsv8 CHSV
Definition chsv.h:11
unsigned char uint8_t
Definition s16x16x4.h:209

References FastLED, FASTLED_TESTING, hue, leds, and NUM_LEDS.