Content originally posted in LPCWare by Wouter on Mon Jun 16 11:58:00 MST 2014
Hi Marcellus,
Can you try replacing the following line:
GUI_DEVICE_CreateAndLink(GUIDRV_FLEXCOLOR, GUICC_565, 0, 0);
with:
GUI_DEVICE_CreateAndLink(GUIDRV_FLEXCOLOR, GUICC_M888, 0, 0);
Does this result in emWin giving three data bytes per pixel?
Regards,
Wouter
EDIT: Saw your reply on the web support, changing to GUICC_M888 does not make any difference. Then it indeed looks like a bug. I'll contact Segger to get a confirmation on this.
For now, the easiest workaround may be to change the driver configuration to 16-bit mode, then chop the 16-bit int you get from emWin into three bytes and transfer these three bytes after each other over your 8-bit interface.