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

◆ EVERY_N_MILLISECONDS_DYNAMIC_I

#define EVERY_N_MILLISECONDS_DYNAMIC_I ( NAME,
PERIOD_FUNC )
Value:
static CEveryNMillisDynamic NAME(1); \
NAME.setPeriod(PERIOD_FUNC); \
if( NAME )
Create the CEveryNMillisDynamic class for dynamic millisecond intervals.
Definition lib8tion.h:1186

Checks whether to execute a block of code every N milliseconds, where N is determined dynamically, using a custom instance name.

Definition at line 1367 of file lib8tion.h.

1367#define EVERY_N_MILLISECONDS_DYNAMIC_I(NAME, PERIOD_FUNC) \
1368 static CEveryNMillisDynamic NAME(1); \
1369 NAME.setPeriod(PERIOD_FUNC); \
1370 if( NAME )