|
FastLED 3.9.15
|
Proxy that creates a legacy WS2812B controller from a runtime pin number.
The legacy FastLED API requires compile-time template pin parameters: FastLED.addLeds<WS2812B, PIN>(leds, numLeds)
This proxy uses a switch statement to dispatch runtime pin values (0-8) to the corresponding template instantiation, enabling autoresearch testing of the full legacy code path.
Destructor deletes the controller, which on ESP32 (SKETCH_HAS_LARGE_MEMORY) automatically calls removeFromDrawList() via ~CLEDController().
Definition at line 24 of file LegacyClocklessProxy.h.
#include <LegacyClocklessProxy.h>
Collaboration diagram for LegacyClocklessProxy:Public Member Functions | |
| LegacyClocklessProxy (const LegacyClocklessProxy &)=delete | |
| LegacyClocklessProxy (int pin, CRGB *leds, int numLeds) | |
| ~LegacyClocklessProxy ()=default | |
| LegacyClocklessProxy & | operator= (const LegacyClocklessProxy &)=delete |
| bool | valid () const |
| Check if the proxy was successfully created. | |
Private Member Functions | |
| template<int PIN> | |
| fl::unique_ptr< CLEDController > | create (CRGB *leds, int numLeds) |
Private Attributes | |
| fl::unique_ptr< CLEDController > | mController |