vocore2 icon indicating copy to clipboard operation
vocore2 copied to clipboard

Screen with 24 bit colors

Open gmasil opened this issue 9 months ago • 4 comments

Hi, in the fbusb readme (/utils/fbusb/src/README.md) you describe how to get better colors with 24 bit in RGB format with one byte per color.

I try to do exactly that with libusb similar to example code in the SDK:

frame_size = 1152000;
uint8_t send_cmd[] = { 0x00, 0x2c, frame_size, frame_size >> 8, frame_size >> 16, 0x00 };
libusb_control_transfer(handle, 0x40, 0xb0, 0, 0, send_cmd, 6, 100);
libusb_bulk_transfer(handle, 0x02, frame, frame_size, NULL, 100);

But it seems that the display still interprets the data I send as 16 bit 565. Do I have to use some other command instead of 0x2c or do I have to send a command to bring the screen in a 24 bit mode or how does that work?

Thank you very much, any help is really appreciated!

gmasil avatar May 21 '24 13:05 gmasil