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

◆ setExclusiveDriver() [2/2]

bool CFastLED::setExclusiveDriver ( fl::Bus bus)

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 566 of file FastLED.cpp.hpp.

566 {
567 fl::ChannelManager& manager = fl::channelManager();
568 return manager.setExclusiveDriver(bus);
569}
void setExclusiveDriver() FL_NOEXCEPT
Register a single driver at a priority above the platform default and disable all others (compile-tim...
Definition manager.h:322
ChannelManager & channelManager()
Get the global ChannelManager singleton instance.

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

+ Here is the call graph for this function: