#if defined(__AVR__)
#else
#define LED_PIN 2
#define BRIGHTNESS 96
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
#define MATRIX_WIDTH 22
#define MATRIX_HEIGHT 22
#define NUM_LEDS (MATRIX_WIDTH * MATRIX_HEIGHT)
#ifdef __EMSCRIPTEN__
#define IS_SERPINTINE false
#else
#define IS_SERPINTINE true
#endif
delay(1000);
}
}
}
}
#endif
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
XYMap xyMap(HEIGHT, WIDTH, SERPENTINE)
FxEngine fxEngine(NUM_LEDS)
NoisePalette noisePalette2(xyMap)
UICheckbox switchFx("Switch Fx", true)
NoisePalette noisePalette1(xyMap)
Manages and renders multiple visual effects (Fx) for LED strips.
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
#define EVERY_N_SECONDS(N)
Checks whether to execute a block of code every N seconds.
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)