Hi , Tim
yes, I want to load the saved bitmap into the framebuffer
I converted the RGB565 to RGB888 by doing the following steps:
color[0] = ((*ptr & 0xf800) >> 11 ) << 3; // R
color[1] = ((*ptr & 0x07e0) >> 5 ) << 2; // G
color[2] = (*ptr & 0x001f) << 3; // B
I converted the RGB888 to RGB565 by doing the following step:
data = (_buf[0] >> 3 ) << 11 | (_buf[1] >> 2 ) << 5 | (_buf[2] >> 3 ) ; // _buf[0] = R , _buf[1] = G , _buf[2] = B
For example, a pixel 0xE8ECE8 (RGB888) will be converted to 0xEF7D
Best Regards,
Andy