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

◆ create()

template<int PIN>
fl::unique_ptr< CLEDController > LegacyClocklessProxy::create ( CRGB * leds,
int numLeds )
inlineprivate

Definition at line 28 of file LegacyClocklessProxy.h.

28 {
30 FastLED.addLeds(c.get(), leds, numLeds);
31 return c;
32 }
fl::CRGB leds[NUM_LEDS]
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
::CLEDController & addLeds(::CLEDController *pLed, CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
fl::enable_if<!fl::is_array< T >::value, unique_ptr< T > >::type make_unique(Args &&... args) FL_NOEXCEPT
Definition unique_ptr.h:261

References FastLED, leds, and fl::make_unique().

Referenced by LegacyClocklessProxy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: