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

◆ B [2/11]

Initial value:
= fl::Bus::AUTO> static ::CLEDController &addLeds(CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
FL_STATIC_ASSERT(CHIP::IS_VALID, "Unsupported chipset");
typedef typename CHIP::ControllerType ControllerType;
static ControllerType 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::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 1080 of file FastLED.h.

1080 {
1083 FL_STATIC_ASSERT(CHIP::IS_VALID, "Unsupported chipset");
1084 typedef typename CHIP::ControllerType ControllerType;
1085 static ControllerType c;
1086 return addLeds(&c, data, nLedsOrOffset, nLedsIfOffset);
1087 }