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

◆ loop()

void loop ( )

Definition at line 19 of file Blur.ino.

19 {
20 // Add a bright pixel that moves
21 leds[pos] = CHSV(pos * 2, 255, 255);
22 // Blur the entire strip
23 blur1d(leds, NUM_LEDS, 172);
25 FastLED.show();
26 // Move the position of the dot
27 if (toggle) {
28 pos = (pos + 1) % NUM_LEDS;
29 }
30 toggle = !toggle;
31 delay(20);
32}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
uint8_t pos
Definition Blur.ino:11
bool toggle
Definition Blur.ino:12
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
void fadeToBlackBy(CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)
void blur1d(fl::span< CRGB > leds, fract8 blur_amount) FL_NOEXCEPT
Definition blur.h:150
fl::hsv8 CHSV
Definition chsv.h:11
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
Definition delay.h:98

References blur1d(), fadeToBlackBy(), FastLED, leds, NUM_LEDS, pos, and toggle.

+ Here is the call graph for this function: