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

◆ lpd8806Encode()

u8 fl::lpd8806Encode ( u8 value)
inline

Apply LPD8806 encoding to a single color byte.

Parameters
value8-bit color value (0-255)
Returns
7-bit color with MSB set (0x80-0xFF)
Note
LPD8806 uses 7-bit color depth with MSB always set

Definition at line 60 of file encoder_utils.h.

60 {
61 // LPD8806 requires MSB set on each byte, and uses 7-bit color depth
62 return 0x80 | ((value >> 1) | ((value && (value < 254)) & 0x01));
63}
constexpr int type_rank< T >::value

References FL_NOEXCEPT, and type_rank< T >::value.

Referenced by encodeLPD8806().

+ Here is the caller graph for this function: