26#if !SKETCH_HAS_LOTS_OF_MEMORY
49#define COLOR_ORDER GRB
51#define MATRIX_WIDTH 32
52#define MATRIX_HEIGHT 32
54#define NUM_LEDS (MATRIX_WIDTH * MATRIX_HEIGHT)
56#define FIRST_ANIMATION POLAR_WAVES
60#define LED_DIAMETER 0.15
80 auto screen_map =
xyMap.toScreenMap();
81 screen_map.setDiameter(LED_DIAMETER);
84 .setScreenMap(screen_map);
88 colorOrder.onChanged([](
int value) {
90 case 0: value =
RGB;
break;
91 case 1: value =
RBG;
break;
92 case 2: value =
GRB;
break;
93 case 3: value =
GBR;
break;
94 case 4: value =
BRG;
break;
95 case 5: value =
BGR;
break;
104 static int lastFxIndex = -1;
105 if (
fxIndex.value() != lastFxIndex) {
UITitle title("Chromancer")
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
FxEngine fxEngine(NUM_LEDS)
UISlider brightness("Brightness", 1, 0, 1)
static XYMap constructRectangularGrid(uint16_t width, uint16_t height, uint16_t offset=0)
Manages and renders multiple visual effects (Fx) for LED strips.
EOrder
RGB color channel orderings, used when instantiating controllers to determine what order the controll...
@ RGB
Red, Green, Blue (0012)
@ BGR
Blue, Green, Red (0210)
@ BRG
Blue, Red, Green (0201)
@ GRB
Green, Red, Blue (0102)
@ RBG
Red, Blue, Green (0021)
@ GBR
Green, Blue, Red (0120)
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)
UISlider timeSpeed("Time Speed", 1, -10, 10,.1)
UINumberField fxIndex("Animartrix - index", 0, 0, NUM_ANIMATIONS)
Animartrix animartrix(xyMap, POLAR_WAVES)
UIDescription description("Advanced layered and blended wave effects.")