FastLED 3.10.9
Loading...
Searching...
No Matches

◆ createTyped()

template<typename Controller>
fl::unique_ptr< CLEDController > LegacyClocklessProxy::createTyped ( CRGB * leds,
int numLeds,
bool rgbw )
inlineprivate

Definition at line 157 of file LegacyClocklessProxy.h.

158 {
160 FastLED.addLeds(c.get(), leds, numLeds);
161#if AUTORESEARCH_LEGACY_OBSERVES_RMT4_FRAMES
162 mFrame = c->channelData();
163#endif
164 if (rgbw) {
165 c->setRgbw(RgbwDefault());
166 }
167 return c;
168 }
CRGB leds[1]
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Rgbw rgbw
::CLEDController & addLeds(::CLEDController *pLed, CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0) FL_NO_EXCEPT
Add a CLEDController instance to the world.
fl::enable_if<!fl::is_array< T >::value, unique_ptr< T > >::type make_unique(Args &&... args) FL_NO_EXCEPT
Definition unique_ptr.h:263

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

Referenced by create().

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