28#define COLOR_ORDER GRB
30#define MATRIX_WIDTH 100
31#define MATRIX_HEIGHT 100
32#define GRID_SERPENTINE false
34#define NUM_LEDS (MATRIX_WIDTH * MATRIX_HEIGHT)
82UIDescription description(
"This example combines two features of FastLED to produce a remarkable range of effects from a relatively small amount of code. This example combines FastLED's color palette lookup functions with FastLED's Perlin noise generator, and the combination is extremely powerful");
110 Serial.begin(115200);
111 Serial.println(
"Sketch setup");
114 .setScreenMap(
xyMap);
115 Serial.println(
"FastLED setup done");
121 Serial.println(
"Sketch setup done");
125 uint32_t now = millis();
148 static int lastFxIndex = -1;
149 if (
fxIndex.value() != lastFxIndex) {
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
UISlider brightness("Brightness", 128, 0, 255, 1)
Manages and renders multiple visual effects (Fx) for LED strips.
static XYMap constructRectangularGrid(u16 width, u16 height, u16 offset=0)
fl::unique_ptr< Animartrix > animartrix
fl::unique_ptr< FxEngine > fxEngine
CRGBPalette16 noisePalette
FastLED's Elegant JSON Library: fl::Json
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
#define EVERY_N_MILLISECONDS_DYNAMIC(PERIOD_FUNC)
Checks whether to execute a block of code every N milliseconds, where N is determined dynamically.
Demonstrates how to mix noise generation with color palettes on a 2D LED matrix.
Representation of an RGB pixel (Red, Green, Blue)
UIGroup animartrixControls("Animartrix Controls", fxIndex, changeFx)
UIButton changeFx("Switch between Noise & Animartrix")
UIGroup displayControls("Display Controls", brightness, isOff, timeSpeed)
UINumberField fxIndex("Animartrix - index", 0, 0, NUM_ANIMATIONS)
UISlider timeSpeed("Time Speed", 1, -10, 10,.1)
UIDescription description("This example combines two features of FastLED to produce a remarkable range of effects from a relatively small amount of code. This example combines FastLED's color palette lookup functions with FastLED's Perlin noise generator, and the combination is extremely powerful")
UICheckbox isOff("Off", false)
UISlider changePalletTime("Noise - Time until next random Palette", 5, 1, 100)
UISlider brightness("Brightness", 255, 0, 255)
UITitle title("FastLED Wasm Demo")
UICheckbox changePallete("Noise - Auto Palette", true)
UIButton changePalette("Noise - Next Palette")
UIGroup noiseControls("Noise Controls", speed, changePallete, changePalletTime, scale, changePalette)