FastLED 3.10.6
Loading...
Searching...
No Matches

◆ encodeUart2Bits() [2/2]

FASTLED_FORCE_INLINE FL_IRAM FL_OPTIMIZE_FUNCTION u8 fl::detail::encodeUart2Bits ( u8 two_bits,
const Wave10Lut & lut )

Encode 2 LED bits to 1 UART byte using a Wave10 LUT.

Parameters
two_bits2-bit value (0-3)
lutWave10 lookup table
Returns
UART data byte (8 bits)

Definition at line 166 of file uart_wave_encoder.h.

166 {
167 return lut.lut[two_bits & 0x03];
168}
u8 lut[4]
2-bit input -> UART data byte

References fl::FL_NO_EXCEPT.

Referenced by encodeUartByte(), and encodeUartByte().

+ Here is the caller graph for this function: