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

◆ hours8()

LIB8STATIC u8 fl::hours8 ( )

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

Definition at line 34 of file time_functions.h.

34 {
35 u32 ms = fl::millis();
36 u8 h8;
37 h8 = (ms / (3600000L)) & 0xFF;
38 return h8;
39}
unsigned char u8
Definition stdint.h:131
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.

References FL_NOEXCEPT, LIB8STATIC, and millis().

+ Here is the call graph for this function: