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

◆ wait() [1/2]

void CFastLED::wait ( )

Wait for all channel bus transmissions to complete.

Note
Polls the channel bus manager until it returns READY state
Uses delayMicroseconds(100) between polls to prevent watchdog timeout
Safe to call on all platforms (no-op on platforms without channel bus)

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

590 {
591 fl::ChannelManager& manager = fl::channelManager();
592 // Wait for all drivers to become READY
593 // Calls async_run() and uses time-based delays to avoid busy-waiting
594 manager.waitForReady();
595}
bool waitForReady(u32 timeoutMs=1000) FL_NOEXCEPT
Wait for all drivers to become READY.
ChannelManager & channelManager()
Get the global ChannelManager singleton instance.

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

+ Here is the call graph for this function: