6#ifndef COMPILE_NOISEPLUSPALETTE
9#define COMPILE_NOISEPLUSPALETTE 0
11#define COMPILE_NOISEPLUSPALETTE 1
15#if COMPILE_NOISEPLUSPALETTE
25#define LED_TYPE WS2811
26#define COLOR_ORDER GRB
28#define MATRIX_WIDTH 16
29#define MATRIX_HEIGHT 16
32#define GRID_SERPENTINE 0
34#define GRID_SERPENTINE 1
37#define NUM_LEDS (MATRIX_WIDTH * MATRIX_HEIGHT)
69Slider SCALE(
"SCALE", 20, 1, 100, 1);
75Slider SPEED(
"SPEED", 30, 1, 60, 1);
78XYMap xyMap(MATRIX_WIDTH, MATRIX_HEIGHT, GRID_SERPENTINE);
86 noisePalette.setSpeed(SPEED);
87 noisePalette.setScale(SCALE);
91 noisePalette.setSpeed(SPEED);
92 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.
@ 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)