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