FastLED 3.9.15
Loading...
Searching...
No Matches

◆ createFastLEDController()

fl::shared_ptr< IFastLED > fl::createFastLEDController ( u8 controllerIndex = 0)

Create a FastLED controller adapter.

Parameters
controllerIndexIndex of the LED controller to use (default: 0)
Returns
Shared pointer to the adapter

Example:

CRGB leds[100];
FastLED.addLeds<WS2812, 5>(leds, 100);
auto controller = createFastLEDController(); // Uses controller index 0
fl::CRGB leds[NUM_LEDS]
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
CLEDController * controller
fl::shared_ptr< IFastLED > createFastLEDController(u8 controllerIndex)
Create a FastLED controller adapter.
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Definition crgb.h:38

Definition at line 138 of file adapter.cpp.hpp.

138 {
139 return fl::make_shared<FastLEDAdapter>(controllerIndex);
140}
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414

References make_shared().

+ Here is the call graph for this function: