97 {
98
100
101
103
104
105 uint8_t
x = map(sliderValue * 1000, 0, 1000, 0,
MATRIX_WIDTH - 1);
106
107
109
112
113 uint16_t easeInput = map(sliderValue * 1000, 0, 1000, 0, 65535);
114 uint16_t easeOutput =
ease16(selectedEaseType, easeInput);
116 } else {
117
118 uint8_t easeInput = map(sliderValue * 1000, 0, 1000, 0, 255);
119 uint8_t easeOutput =
ease8(selectedEaseType, easeInput);
121 }
122
123
126 }
127
129}
EaseType getEaseType(int value)
LedsXY< MATRIX_WIDTH, MATRIX_HEIGHT > leds
UIDropdown easeTypeDropdown("Ease Type", easeOptions)
UICheckbox use16Bit("16-bit", true)
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.
void clear(CRGB(&arr)[N])
u16 ease16(EaseType type, u16 i)
u8 ease8(EaseType type, u8 i)
@ White
<div style='background:#FFFFFF;width:4em;height:4em;'></div>