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 860 of file lib8tion.h.

861{
862 uint32_t ms = GET_MILLIS();
863 uint16_t s16;
864 s16 = ms / 1000;
865 return s16;
866}
#define GET_MILLIS
The a number of functions need access to a millisecond counter in order to keep time.
Definition lib8tion.h:699

References GET_MILLIS, and LIB8STATIC.

Referenced by INSTANTIATE_EVERY_N_TIME_PERIODS().

+ Here is the caller graph for this function: