8#define FASTLED_INTERNAL
75 for (
size_t i = 0; i < numLeds; i++) {
94 FastLED.setCorrection(correction);
98 FastLED.setTemperature(temperature);
106 FastLED.setMaxRefreshRate(fps);
120 if (start >= numLeds) {
121 start = numLeds > 0 ? numLeds - 1 : 0;
130 start =
end > 0 ?
end - 1 : 0;
fl::UISlider brightness("Brightness", BRIGHTNESS, 0, 255)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
CLEDController * controller
fl::span< CRGB > getLEDs() FL_NO_EXCEPT override
Get the LED array as a span.
void setCorrection(CRGB correction) FL_NO_EXCEPT override
Set color correction.
size_t getNumLEDs() const FL_NO_EXCEPT override
Get the number of LEDs.
void setMaxRefreshRate(u16 fps) FL_NO_EXCEPT override
Set the maximum refresh rate.
void clearSegment() FL_NO_EXCEPT override
Clear the segment range (operate on full LED array)
void show() FL_NO_EXCEPT override
Send the LED data to the strip Uses the current brightness setting.
void clear(bool writeToStrip=false) FL_NO_EXCEPT override
Clear all LEDs (set to black)
void setTemperature(CRGB temperature) FL_NO_EXCEPT override
Set color temperature.
void delay(unsigned long ms) FL_NO_EXCEPT override
Delay for a specified number of milliseconds.
FastLEDAdapter(u8 controllerIndex=0) FL_NO_EXCEPT
Construct adapter wrapping the global FastLED object.
void setBrightness(u8 brightness) FL_NO_EXCEPT override
Set the global brightness.
u16 getMaxRefreshRate() const FL_NO_EXCEPT override
Get the maximum refresh rate.
u8 getBrightness() const FL_NO_EXCEPT override
Get the current global brightness.
void setSegment(size_t start, size_t end) FL_NO_EXCEPT override
Set a segment range for subsequent operations.
constexpr T * end(T(&array)[N]) FL_NO_EXCEPT
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
u8 u8 fract8 blur_amount FL_NO_EXCEPT
fl::shared_ptr< IFastLED > createFastLEDController(u8 controllerIndex) FL_NO_EXCEPT
Create a FastLED controller adapter.
Base definition for an LED controller.
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Representation of an 8-bit RGB pixel (Red, Green, Blue)