Hi
I've a simple Hello World project. When I use an old (STemWin) 532 library i get colour yet when I use the (MDK-MW) 632 I am only getting monochrome. This is happening at the "paint" level; When I look at the VRAM I see that only 0xFF / 0x00 are being written to layer memory.
Code is:
Display All
From my LTDC driver:
#define COLOR_CONVERSION_0 GUICC_M4444I
#define BYTE_PER_PIXEL_0 2
#define DISPLAY_DRIVER_0 GUIDRV_LIN_16
DMA2D is enabled (but, as said, none of the problem is at the LTDC/DMA level as the layer memory is showing monochrome only).
When selecting emWin Core in the MDK RTE I, also, select the Interface Template. I, then, disable the interface template from my compile and use another LTDC driver.
Am i missing something? My thought (see prior post) is that the MDK emWin lib build may not include GUICC_M4444I but I cannot check this (I cannot find a listing of the build options in the library).
Thanks
Mark
I've a simple Hello World project. When I use an old (STemWin) 532 library i get colour yet when I use the (MDK-MW) 632 I am only getting monochrome. This is happening at the "paint" level; When I look at the VRAM I see that only 0xFF / 0x00 are being written to layer memory.
Code is:
Source Code
- GUI_Init();
- WM_SetScreenSize(800, 480);
- WM_MULTIBUF_Enable(1);
- GUI_EnableAlpha(1);
- GUI_SetAlpha(0);
- while(1){
- GUI_MULTIBUF_Begin();
- GUI_Clear();
- GUI_SetColor(GUI_ORANGE);
- GUI_DispStringAt("hello",x,100);
- GUI_SetColor(GUI_BLUE);
- GUI_FillRect(0,0,20,20);
- GUI_MULTIBUF_End();
- x+=10;
- if(x > 750){
- x = 10;
- }
- }
From my LTDC driver:
#define COLOR_CONVERSION_0 GUICC_M4444I
#define BYTE_PER_PIXEL_0 2
#define DISPLAY_DRIVER_0 GUIDRV_LIN_16
DMA2D is enabled (but, as said, none of the problem is at the LTDC/DMA level as the layer memory is showing monochrome only).
When selecting emWin Core in the MDK RTE I, also, select the Interface Template. I, then, disable the interface template from my compile and use another LTDC driver.
Am i missing something? My thought (see prior post) is that the MDK emWin lib build may not include GUICC_M4444I but I cannot check this (I cannot find a listing of the build options in the library).
Thanks
Mark