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

◆ loop()

void loop ( )

Definition at line 43 of file Blur2d.ino.

43 {
44 static int x = random(WIDTH);
45 static int y = random(HEIGHT);
46 static fl::CRGB c = fl::CRGB(0, 0, 0);
49 x = random(WIDTH);
50 y = random(HEIGHT);
51 uint8_t r = random(255);
52 uint8_t g = random(255);
53 uint8_t b = random(255);
54 c = fl::CRGB(r, g, b);
55 }
56 leds[xymap(x, y)] = c;
57 FastLED.show();
58 delay(20);
59}
fl::CRGB leds[NUM_LEDS]
XYMap xymap
int y
Definition simple.h:93
int x
Definition simple.h:92
#define BLUR_AMOUNT
Definition Blur2d.ino:26
fl::XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
#define WIDTH
#define HEIGHT
void blur2d(fl::span< CRGB > leds, u8 width, u8 height, fract8 blur_amount, const XYMap &xymap) FL_NOEXCEPT
Definition blur.h:153
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Definition lib8tion.h:1045
fl::CRGB CRGB
Definition video.h:15
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
unsigned char uint8_t
Definition s16x16x4.h:209
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Definition crgb.h:38

References blur2d(), BLUR_AMOUNT, EVERY_N_MILLISECONDS, FastLED, HEIGHT, leds, WIDTH, x, xymap, and y.

+ Here is the call graph for this function: