28#define COLOR_ORDER GRB
30#define MATRIX_WIDTH 22
31#define MATRIX_HEIGHT 22
33#define NUM_LEDS (MATRIX_WIDTH * MATRIX_HEIGHT)
35#define FIRST_ANIMATION POLAR_WAVES
63 static int lastFxIndex = -1;
64 if (
fxIndex.value() != lastFxIndex) {
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
XYMap xyMap(HEIGHT, WIDTH, SERPENTINE)
UISlider brightness("Brightness", 255, 0, 255, 1)
UISlider timeSpeed("Time Speed", 1, -10, 10,.1)
FxEngine fxEngine(NUM_LEDS)
UIDescription description("Demo of the Animatrix effects. @author of fx is StefanPetrick")
Animartrix animartrix(xyMap, FIRST_ANIMATION)
UISlider brightness("Brightness", 255, 0, 255)
UITitle title("Animartrix")
UINumberField fxIndex("Animartrix - index", 0, 0, NUM_ANIMATIONS - 1)
Manages and renders multiple visual effects (Fx) for LED strips.
static XYMap constructRectangularGrid(uint16_t width, uint16_t height, uint16_t offset=0)
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)