12#define NUM_LEDS (WIDTH * HEIGHT)
13#define BLUR_AMOUNT 172
16#define SERPENTINE true
21XYMap xymap(WIDTH, HEIGHT, SERPENTINE);
30 static int x = random(WIDTH);
31 static int y = random(HEIGHT);
33 blur2d(leds, WIDTH, HEIGHT, BLUR_AMOUNT, xymap);
37 uint8_t r = random(255);
38 uint8_t g = random(255);
39 uint8_t b = random(255);
42 leds[xymap(x, y)] = c;
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
void setBrightness(uint8_t scale)
Set the global brightness scaling.
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
WS2812B controller class.
@ GRB
Green, Red, Blue (0102)
void blur2d(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const XYMap &xymap)
Two-dimensional blur filter.
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)