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

◆ at_framerate() [2/2]

Handle fl::task::at_framerate ( int fps,
const TracePoint & trace )

Creates a traced task that runs at a fixed frame rate.

Parameters
fpsNumber of executions per second.
traceLocation where the task was created.
Returns
A handle for configuring and controlling the task.

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

332 {
333 return Handle(fl::make_shared<TimeTask>(TaskType::kAtFramerate, 1000 / fps, trace));
334}
Task Handle with fluent API (was class fl::task, renamed to avoid namespace collision)
Definition task.h:156
@ kAtFramerate
Runs at a fixed number of times per second.
Definition task.h:119
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:414

References kAtFramerate, and fl::make_shared().

+ Here is the call graph for this function: