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

◆ loop()

void loop ( )

Definition at line 55 of file DemoReel100.ino.

56{
57 // Call the current pattern function once, updating the 'leds' array
59
60 // send the 'leds' array out to the actual LED strip
61 FastLED.show();
62 // insert a delay to keep the framerate modest
63 FastLED.delay(1000/FRAMES_PER_SECOND);
64
65 // do some periodic updates
66 EVERY_N_MILLISECONDS( 20 ) { gHue++; } // slowly cycle the "base color" through the rainbow
67 EVERY_N_SECONDS( 10 ) { nextPattern(); } // change patterns periodically
68}
void nextPattern()
uint8_t gCurrentPatternNumber
#define FRAMES_PER_SECOND
uint8_t gHue
SimplePatternList gPatterns
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:74
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Definition lib8tion.h:1221
#define EVERY_N_SECONDS(N)
Checks whether to execute a block of code every N seconds.
Definition lib8tion.h:1186

References EVERY_N_MILLISECONDS, EVERY_N_SECONDS, FastLED, FRAMES_PER_SECOND, gCurrentPatternNumber, gHue, gPatterns, and nextPattern().

+ Here is the call graph for this function: