FastLED 3.9.15
|
LIB8STATIC_ALWAYS_INLINE uint8_t avg8 | ( | uint8_t | i, |
uint8_t | j ) |
Calculate an integer average of two unsigned 8-bit integer values (uint8_t), rounded down.
Fractional results are rounded down, e.g. avg8(20,41) = 30
i | first value to average |
j | second value to average |
Definition at line 193 of file math8.h.
References LIB8STATIC_ALWAYS_INLINE.