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

◆ B [1/11]

Initial value:
= fl::Bus::AUTO> ::CLEDController &addLeds(CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
FL_STATIC_ASSERT(CHIP::IS_VALID, "Unsupported chipset");
typedef typename CHIP::template CONTROLLER_CLASS_WITH_ORDER_AND_FREQ<RGB_ORDER, SPI_DATA_RATE>::ControllerType ControllerTypeWithFreq;
static ControllerTypeWithFreq c;
return addLeds(&c, data, nLedsOrOffset, nLedsIfOffset);
}
#define CHIPSET
ESPIChipsets
Backwards compatibility enum - allows old code to use unscoped names (e.g., APA102 instead of fl::Spi...
Definition FastLED.h:255
::CLEDController & addLeds(::CLEDController *pLed, CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
fl::CLEDController CLEDController
fl::CRGB CRGB
Definition crgb.h:25
@ AUTO
Sentinel: defer to DefaultBus<Chipset>::value.
Definition bus.h:61
void busKeepAlive() FL_NOEXCEPT
Definition bus_traits.h:117
#define FL_STATIC_ASSERT(...)

Definition at line 1069 of file FastLED.h.

1069 {
1071 // Instantiate the controller using ClockedChipsetHelper
1073 FL_STATIC_ASSERT(CHIP::IS_VALID, "Unsupported chipset");
1074 typedef typename CHIP::template CONTROLLER_CLASS_WITH_ORDER_AND_FREQ<RGB_ORDER, SPI_DATA_RATE>::ControllerType ControllerTypeWithFreq;
1075 static ControllerTypeWithFreq c;
1076 return addLeds(&c, data, nLedsOrOffset, nLedsIfOffset);
1077 }

Referenced by setExclusiveDriver().