|
FastLED 3.9.15
|
Pure virtual interface for FastLED operations.
This interface abstracts FastLED operations to enable dependency injection and testing. It represents the core LED control operations that WLED and other integrations need to perform.
This interface allows:
Definition at line 24 of file ifastled.h.
#include <ifastled.h>
Inheritance diagram for fl::IFastLED:Public Member Functions | |
| virtual | ~IFastLED () FL_NOEXCEPT=default |
| virtual void | clear (bool writeToStrip=false)=0 |
| Clear all LEDs (set to black) | |
| virtual void | clearSegment ()=0 |
| Clear the segment range (operate on full LED array) | |
| virtual void | delay (unsigned long ms)=0 |
| Delay for a specified number of milliseconds. | |
| virtual u8 | getBrightness () const =0 |
| Get the current global brightness. | |
| virtual fl::span< CRGB > | getLEDs ()=0 |
| Get the LED array as a span. | |
| virtual u16 | getMaxRefreshRate () const =0 |
| Get the maximum refresh rate. | |
| virtual size_t | getNumLEDs () const =0 |
| Get the number of LEDs. | |
| virtual void | setBrightness (u8 brightness)=0 |
| Set the global brightness. | |
| virtual void | setCorrection (CRGB correction)=0 |
| Set color correction. | |
| virtual void | setMaxRefreshRate (u16 fps)=0 |
| Set the maximum refresh rate. | |
| virtual void | setSegment (size_t start, size_t end)=0 |
| Set a segment range for subsequent operations. | |
| virtual void | setTemperature (CRGB temperature)=0 |
| Set color temperature. | |
| virtual void | show ()=0 |
| Send the LED data to the strip Uses the current brightness setting. | |
| virtual void | show (u8 brightness)=0 |
| Send the LED data to the strip with a specific brightness. | |