FastLED 3.10.6
Loading...
Searching...
No Matches

◆ setExclusiveDriver() [2/2]

bool CFastLED::setExclusiveDriver ( fl::Bus bus,
fl::u8 which = 0 )

Enable only one driver exclusively, runtime form (disables all others)

Parameters
busBus enum identifying the driver (typed, typo-safe)
Returns
true if driver was found and set as exclusive, false otherwise
Note
Use for testing specific drivers or debugging
Does NOT ODR-use BusTraits<bus>::instancePtr() — for compile-time TU-linking of a non-default driver, use the setExclusiveDriver<fl::Bus B>() template overload above.
For drivers whose names aren't in the fl::Bus enum (mocks, custom third-party drivers, RPC-resolved names), use fl::ChannelManager::instance().setExclusiveDriverByName(name) directly.

Definition at line 750 of file FastLED.cpp.hpp.

750 {
751 fl::ChannelManager& manager = fl::channelManager();
752 return manager.setExclusiveDriver(bus, which);
753}
void setExclusiveDriver() FL_NO_EXCEPT
Register a single driver at a priority above the platform default and disable all others (compile-tim...
Definition manager.h:356
ChannelManager & channelManager()
Get the global ChannelManager singleton instance.

References fl::channelManager(), and fl::ChannelManager::setExclusiveDriver().

+ Here is the call graph for this function: