15#define FASTLED_W2812_OVERCLOCK 1.1
25#define LED_TYPE WS2811
26#define COLOR_ORDER GRB
28#define MATRIX_WIDTH 22
29#define MATRIX_HEIGHT 22
30#define GRID_SERPENTINE 1
32#define NUM_LEDS (MATRIX_WIDTH * MATRIX_HEIGHT)
72XYMap xyMap(MATRIX_WIDTH, MATRIX_HEIGHT, GRID_SERPENTINE);
81 noisePalette.setSpeed(SPEED);
82 noisePalette.setScale(SCALE);
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.
void draw(DrawContext context) override
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Implements a simple red square effect for 2D LED grids.
Demonstrates how to mix noise generation with color palettes on a 2D LED matrix.
Representation of an RGB pixel (Red, Green, Blue)