lpcware

emWin Configuration for LPC 1bpp palette mode

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by sonne123 on Fri Dec 18 15:06:24 MST 2015
My LPC1788 board works fine in 1bpp palette mode on attached display.

Pictures are getting displayed with two predefined palette colors when copying emWin generated bitmap from flash to _aVRAM.

When implementing emWin libraries to display same picture, I am either getting hard faults or my display just shows first palette color full screen:
GUI_Init();
GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), &_cbDialog, 0, 0, 0);

Please answer/confirm:
1. What emWin display driver is required? GUIDRV_Lin_1_API?
2. What color conversion setting is required? GUICC_0?
3. Do I need to set my palette data through LCD_SetLUTEntryEx() or some other function?
4. Will 8k be sufficient for emWin to simply display a 1bpp bitmap? (additional frame buffer for LPC display controller)

Thanks a lot for your replies in advance.





Outcomes