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

◆ LegacyClocklessProxy() [1/2]

LegacyClocklessProxy::LegacyClocklessProxy ( int pin,
CRGB * leds,
int numLeds )
inline

Definition at line 35 of file LegacyClocklessProxy.h.

35 {
36 switch (pin) {
37 case 0: mController = create<0>(leds, numLeds); break;
38 case 1: mController = create<1>(leds, numLeds); break;
39 case 2: mController = create<2>(leds, numLeds); break;
40 case 3: mController = create<3>(leds, numLeds); break;
41 case 4: mController = create<4>(leds, numLeds); break;
42 case 5: mController = create<5>(leds, numLeds); break;
43 case 6: mController = create<6>(leds, numLeds); break;
44 case 7: mController = create<7>(leds, numLeds); break;
45 case 8: mController = create<8>(leds, numLeds); break;
46 default: break; // mController stays nullptr
47 }
48 }
fl::CRGB leds[NUM_LEDS]
fl::unique_ptr< CLEDController > mController
fl::unique_ptr< CLEDController > create(CRGB *leds, int numLeds)

References create(), leds, and mController.

Referenced by LegacyClocklessProxy(), and operator=().

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