FastLED 3.10.6
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 1188 of file FastLED.h.

1189 {
1190 (void)spiCfg;
1191 static MY9221Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, (RATE ? RATE : DATA_RATE_MHZ(1))> sCtrl;
1192 // Register (and bind the LED buffer) only once per specialization; a
1193 // repeated call must not rebind the shared controller's buffer.
1194 static bool sRegistered = false;
1195 if (sRegistered) {
1196 return sCtrl;
1197 }
1198 sRegistered = true;
1199 return addLeds(&sCtrl, data, nLedsOrOffset, nLedsIfOffset);
1200 }
#define DATA_PIN
Definition ClientReal.h:82
#define RGB_ORDER
::CLEDController & addLeds(::CLEDController *pLed, CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
#define DATA_RATE_MHZ
Definition fastspi.h:95

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

+ Here is the call graph for this function: