6#ifndef COMPILE_NOISEPLUSPALETTE
9#define COMPILE_NOISEPLUSPALETTE 0
11#define COMPILE_NOISEPLUSPALETTE 1
15#if COMPILE_NOISEPLUSPALETTE
18#include "fx/2d/noisepalette.hpp"
23#define LED_TYPE WS2811
24#define COLOR_ORDER GRB
26#define MATRIX_WIDTH 16
27#define MATRIX_HEIGHT 16
30#define GRID_SERPENTINE 0
32#define GRID_SERPENTINE 1
35#define NUM_LEDS (MATRIX_WIDTH * MATRIX_HEIGHT)
67Slider SCALE(
"SCALE", 20, 1, 100, 1);
73Slider SPEED(
"SPEED", 30, 1, 60, 1);
76XYMap xyMap(MATRIX_WIDTH, MATRIX_HEIGHT, GRID_SERPENTINE);
77NoisePaletteRef noisePalette = NoisePaletteRef::New(xyMap);
84 noisePalette->lazyInit();
85 noisePalette->setSpeed(SPEED);
86 noisePalette->setScale(SCALE);
90 noisePalette->setSpeed(SPEED);
91 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.
Representation of an RGB pixel (Red, Green, Blue)