16#define MATRIX_WIDTH 100
17#define MATRIX_HEIGHT 100
18#define NUM_LEDS (MATRIX_WIDTH * MATRIX_HEIGHT)
20#define LED_TYPE WS2812B
21#define COLOR_ORDER GRB
25#define MATRIX_SERPENTINE true
34fl::UIDescription description(
"Use the xPosition slider to see the ease function curve. Use the Ease Type dropdown to select different easing functions. Use the 16-bit checkbox to toggle between 16-bit (checked) and 8-bit (unchecked) precision.");
75 Serial.println(
"FastLED Ease16InOutQuad Demo - Simple Curve Visualization");
103 uint8_t
x = map(sliderValue * 1000, 0, 1000, 0,
MATRIX_WIDTH - 1);
111 uint16_t easeInput = map(sliderValue * 1000, 0, 1000, 0, 65535);
112 uint16_t easeOutput = ease16(selectedEaseType, easeInput);
116 uint8_t easeInput = map(sliderValue * 1000, 0, 1000, 0, 255);
117 uint8_t easeOutput = ease8(selectedEaseType, easeInput);
fl::UIDescription description("Demo of the Animatrix effects. @author of fx is StefanPetrick")
fl::UITitle title("Animartrix")
fl::UIDropdown easeTypeDropdown("Ease Type", easeOptions)
fl::UICheckbox use16Bit("16-bit", true)
fl::EaseType getEaseType(int value)
fl::LedsXY< MATRIX_WIDTH, MATRIX_HEIGHT > leds
fl::UISlider xPosition("xPosition", 0.0f, 0.0f, 1.0f, 0.01f)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
CLEDController * controller
#define FL_ASSERT(x, MSG)
static XYMap constructSerpentine(u16 width, u16 height, u16 offset=0) FL_NOEXCEPT
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
void clear(CRGB(&arr)[N])
@ White
<div style='background:#FFFFFF;width:4em;height:4em;'></div>