Hello,
I'm currently working on an application for a WVGA display, controlled with a LPC1788. I'm currently not owning a controller with display, because before using it I want to show the custommer a design of the GUI. For this reason I'm using the simulator (using Visual C++).
I found out while working with the GUI I needed to add layers to the design and also found out I needed to use the emWin View application to visualize the application on windows. First thing I did was using the multilayer sample application called MULTILAYER_AlphaChromaMove.
In my LCD_X_Config function I did the following:
Display All
and SIM_X_Config
when compiling this code with the emWin View application It runs, but the composite window is completely black. It only shows the 3 layers used in the sample.
After some more searching in the Emwin (5.20) datasheet I found this:
Currently systems with multiple displays and multiple layers can be used, but not simulated.
Is this when only using the simulation or also using the Emwin View application?
Else, could someone help me with finding out what's wrong with my multilayer application?
Thanks in advance,
Daan
Update:
I also just found out that when clicking in the composite view (which is fully black) at the place of a button, the button makes it 'Click-action' (so the shape changes as usual) in the normal view ( Layer 0).
I'm currently working on an application for a WVGA display, controlled with a LPC1788. I'm currently not owning a controller with display, because before using it I want to show the custommer a design of the GUI. For this reason I'm using the simulator (using Visual C++).
I found out while working with the GUI I needed to add layers to the design and also found out I needed to use the emWin View application to visualize the application on windows. First thing I did was using the multilayer sample application called MULTILAYER_AlphaChromaMove.
In my LCD_X_Config function I did the following:
C Source Code
- /*********************************************************************
- *
- * LCD_X_Config
- *
- * Purpose:
- * Called during the initialization process in order to set up the
- * display driver configuration.
- */
- const short layer_size_x[TOTAL_LAYERS] = { 320, 320, 320};
- const short layer_size_y[TOTAL_LAYERS] = { 240, 240, 240};
- const short layer_pos_x [TOTAL_LAYERS] = { 0, 0, 0 };
- const short layer_pos_y [TOTAL_LAYERS] = { 0, 0, 0 };
- const long layer_color_set[TOTAL_LAYERS]= { GUICC_M565, GUICC_8666_1, GUICC_8666_1};
- void LCD_X_Config(void) {
- const GUI_DEVICE_API * pDriver;
- static char i;
- #ifndef _WINDOWS
- _UpdateDisplayConfig();
- #endif
- //
- // Check framebuffer size
- //
- #ifndef _WINDOWS
- if ((FB_XSIZE * FB_YSIZE) < (VXSIZE_PHYS * VYSIZE_PHYS)) {
- while (1); // Error, framebuffer too small
- }
- #endif
- //
- // Set display driver and color conversion for 1st layer
- //
- #ifndef _WINDOWS
- if (_Display == DISPLAY_TRULY_240_320) {
- pDriver = DISPLAY_DRIVER_TRULY;
- } else {
- pDriver = DISPLAY_DRIVER_OTHER;
- }
- #else
- pDriver = GUIDRV_WIN32;
- #endif
- for(i = 0; i < TOTAL_LAYERS; i++)
- {
- GUI_DEVICE_CreateAndLink(pDriver, layer_color_set[i], 0, i);
- //
- // Display driver configuration, required for Lin-driver
- //
- LCD_SetPosEx(i, layer_pos_x[i], layer_pos_y[i]);
- LCD_SetSizeEx (i, layer_size_x[i] , layer_size_y[i]);
- LCD_SetVSizeEx (i, layer_size_x[i], layer_size_y[i]);
- LCD_SetVRAMAddrEx(i, (void*)VRAM_ADDR_VIRT);
- }
- //
- // Set user palette data (only required if no fixed palette is used)
- //
- #if defined(PALETTE)
- LCD_SetLUTEx(0, PALETTE);
- #endif
- }
and SIM_X_Config
when compiling this code with the emWin View application It runs, but the composite window is completely black. It only shows the 3 layers used in the sample.
After some more searching in the Emwin (5.20) datasheet I found this:
Currently systems with multiple displays and multiple layers can be used, but not simulated.
Is this when only using the simulation or also using the Emwin View application?
Else, could someone help me with finding out what's wrong with my multilayer application?
Thanks in advance,
Daan
Update:
I also just found out that when clicking in the composite view (which is fully black) at the place of a button, the button makes it 'Click-action' (so the shape changes as usual) in the normal view ( Layer 0).
The post was edited 2 times, last by DaanSchilder ().