FastLED 3.10.10
Loading...
Searching...
No Matches

◆ addLedsSpiDispatch() [1/2]

template<ESPIChipsets CHIPSET, fl::u8 DATA_PIN, fl::u8 CLOCK_PIN, fl::u32 RATE, int VARIANT, fl::EOrder RGB_ORDER, fl::Bus B, fl::u8 B_WHICH>
::CLEDController & CFastLED::addLedsSpiDispatch ( CRGB * data,
int nLedsOrOffset,
int nLedsIfOffset,
const fl::SpiChipsetConfig & spiCfg,
fl::false_type  )
inlinestatic

Definition at line 1228 of file FastLED.h.

1229 {
1230 (void)spiCfg;
1231 static MY9221Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, (RATE ? RATE : DATA_RATE_MHZ(1))> sCtrl;
1232 // Register (and bind the LED buffer) only once per specialization; a
1233 // repeated call must not rebind the shared controller's buffer.
1234 static bool sRegistered = false;
1235 if (sRegistered) {
1236 return sCtrl;
1237 }
1238 sRegistered = true;
1239 return addLeds(&sCtrl, data, nLedsOrOffset, nLedsIfOffset);
1240 }
#define DATA_PIN
Definition ClientReal.h:82
#define RGB_ORDER
::CLEDController & addLeds(::CLEDController *pLed, CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0) FL_NO_EXCEPT
Add a CLEDController instance to the world.
#define DATA_RATE_MHZ
Definition fastspi.h:95

References addLeds(), CLOCK_PIN, DATA_PIN, DATA_RATE_MHZ, FL_NO_EXCEPT, and RGB_ORDER.

+ Here is the call graph for this function: