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

◆ hours8()

LIB8STATIC uint8_t hours8 ( )

Return the current hours since boot in an 8-bit value.

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

Definition at line 1018 of file lib8tion.h.

1019{
1020 uint32_t ms = GET_MILLIS();
1021 uint8_t h8;
1022 h8 = (ms / (3600000L)) & 0xFF;
1023 return h8;
1024}
#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: