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

◆ rgb565ToRgb888()

void fl::rgb565ToRgb888 ( fl::u16 rgb565,
fl::u8 & r,
fl::u8 & g,
fl::u8 & b )

Definition at line 23 of file pixel.cpp.hpp.

23 {
24 // Extract RGB components from RGB565
25 fl::u8 r5 = (rgb565 >> 11) & 0x1F; // 5-bit red
26 fl::u8 g6 = (rgb565 >> 5) & 0x3F; // 6-bit green
27 fl::u8 b5 = rgb565 & 0x1F; // 5-bit blue
28
29 // Use lookup tables for fast conversion
33}
#define FL_PGM_READ_BYTE_NEAR(x)
Read a byte (8-bit) from PROGMEM memory.
unsigned char u8
Definition s16x16x4.h:132
const fl::u8 rgb565_5to8_table[32]
Definition pixel.cpp.hpp:9
const fl::u8 rgb565_6to8_table[64]
Definition pixel.cpp.hpp:15

References FL_PGM_READ_BYTE_NEAR, rgb565_5to8_table, and rgb565_6to8_table.

Referenced by fl::Frame::convertPixelsToRgb().

+ Here is the caller graph for this function: