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

◆ seconds16()

LIB8STATIC uint16_t seconds16 ( )

Return the current seconds since boot in a 16-bit value.

Used as part of the "every N time-periods" mechanism

Definition at line 998 of file lib8tion.h.

999{
1000 uint32_t ms = GET_MILLIS();
1001 uint16_t s16;
1002 s16 = ms / 1000;
1003 return s16;
1004}
#define GET_MILLIS
The a number of functions need access to a millisecond counter in order to keep time.
Definition lib8tion.h:837

References GET_MILLIS, and LIB8STATIC.

Referenced by INSTANTIATE_EVERY_N_TIME_PERIODS().

+ Here is the caller graph for this function: