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

◆ before_frame() [1/2]

Handle fl::task::before_frame ( )

Frame tasks recur: every overload below schedules a task that runs once per FastLED frame and keeps doing so until Handle::cancel() is called on it, so keep the returned handle whenever the task will need to be canceled.

Creates a task that runs before every FastLED frame until canceled.

Returns
A handle for configuring and controlling the task.
Note
Prefer after_frame() unless work must happen immediately before rendering.

Definition at line 336 of file task.cpp.hpp.

336 {
338}
Task Handle with fluent API (was class fl::task, renamed to avoid namespace collision)
Definition task.h:156
@ kBeforeFrame
Runs immediately before each FastLED frame is rendered.
Definition task.h:120
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:414

References kBeforeFrame, and fl::make_shared().

+ Here is the call graph for this function: