Tuesday, June 27th 2017, 2:17am UTC+2

You are not logged in.

  • Login
  • Register

Search results

Search results 1-20 of 309.

Wednesday, June 21st 2017, 4:59pm

Author: SEGGER - Schoenen

Swipelist blocks while decelerating

Hi, I got the reason why the progressbars are not getting updated when the swipelist is running freely. The reason is how emWin mages the redrawing. When moving the SWIPELIST the application gets into GUI_Delay() and calls GUI_Exec(). As long as the something needs to be redrawn emWin calls GUI_Exec(). This means that when the SWIPELIST is decelerating emWin stays in GUI_Delay() (calling GUI_Exec()) until the SWIPELIST stops. In that time the progressbars are not getting updated. To get around o...

Wednesday, June 21st 2017, 4:29pm

Author: SEGGER - Schoenen

Multitask and WM_LOCK()/WM_UNLOCK()

Hi, WM_LOCK and WM_UNLOCK shouldn't be used. This functions are not documented and for internal use only. The recommended way to use emWin in a multitasking environment is to have only one task for emWin (and other tasks for e.g. IP). It is possible to use emWin from multiple tasks but you have to take care what you are doing. Otherwise unpredictable things can happen. But if you use emWin from multiple tasks please make sure you have implemented the following functions in GUI_X.c correctly (bes...

Wednesday, June 21st 2017, 3:29pm

Author: SEGGER - Schoenen

Does emWin support YUV or not?

Hi, Quoted That means I need to convert YUV to RGB while preparing the image data. Yes. Not sure where the data come from. but some hardware provides the functionality that the output is in the proper format already. Regards, Sven

Wednesday, June 21st 2017, 3:15pm

Author: SEGGER - Schoenen

Drawing Gif in a Window or a dialog

Hi, In my sample I converted the GIF into an c-array which contains the same information as the original GIF. To convert the GIF into a c-file you can use the tool linked below. If a GIF gets opened by the Bitmap Converter it shows and converts only the first image. Bin2C converting tool: https://www.segger.com/downloads/emwin/Bin2C Also the function IMAGE_SetBitmap() supports only static images. But with the Bitmap Converter it is also possible to create a c-file with animation. To do this foll...

Tuesday, June 20th 2017, 4:37pm

Author: SEGGER - Schoenen

Swipelist blocks while decelerating

Hi, Which version of emWin are you using? This information can be found in GUI_Version.h. Regards, Sven

Tuesday, June 20th 2017, 2:52pm

Author: SEGGER - Schoenen

Drawing Gif in a Window or a dialog

Hi, On my end it is animated. Do you provide emWin a proper time base? Take a look into GUI_X.c (or GUI_X_embOS.c, GUI_X_FreeRTOS.c, etc.) There are some functions which are getting called by emWin if any timerelated gets called. I have attached the files. You can 'feed' those routines by a timebase provided by an RTOS or you set up a hardware timer on you own. Regards, Sven

Tuesday, June 20th 2017, 2:48pm

Author: SEGGER - Schoenen

Does emWin support YUV or not?

Hi, Unfortunately not. The image needs to be converted into one of the emWin formats. The emWin formats can be found in the manual at chapter 15.6 'Fixed palette modes'. Regards, Sven

Monday, June 19th 2017, 2:27pm

Author: SEGGER - Schoenen

Drawing Gif in a Window or a dialog

Hi, Attached is an example which uses an IMAGE widget to draw an animated GIF. The IMAGE widget is part of a dialog. The dialog draws a bitmap into the background. The GIF is converted into a c-array and added into the code. Regards, Sven

Monday, June 19th 2017, 2:12pm

Author: SEGGER - Schoenen

Updating a value (TEXT STRING) within a DIALOGUE

Hi, Not sure what causes the crash. But, if you update a widget from a dialog periodically in a loop, please make sure the handle of the widget is valid. After GUI_EndDialog() with hDialog the lines below don't work any longer because hDilaog is invalid. Before using a handle which might get invalid you can also call WM_IsWindow() to check if the handle is valid. Where does the application crashes? What does the callstack say? Regards, Sven

Monday, June 19th 2017, 2:02pm

Author: SEGGER - Schoenen

Hard fault by unaligned memory access at GUI_Init()

Hi, please try to call GUI_BSP_SDRAM_Init() from the BSP_GUI.c (attached) before assigning memory to emWin int GUIConf.c. The following line in BSP_GUI.c might be adapted depending on where the framebuffer is located and where the GUI_RAM (aMemory in GUIConf.c) should be placed. C/C++ Source code 1 MPU_InitStruct.BaseAddress = 0xC0400000; In the case above the frame buffer lays at 0xC0000000 and aMemory at 0xC0400000. Regards, Sven

Friday, June 16th 2017, 4:55pm

Author: SEGGER - Schoenen

LISTBOX_GetItemText() in LISTBOX user draw function cause crashed

Hi, If memcpy crashes, we can't do much. Also, I can't say why it crashes. You can set a custom memcpy routine. Simply add something like this to your GUIConf.h (since it is a preprocessor define, you would need to rebuild the library): #define GUI_MEMCPY GUI__memcpy Regards, Sven

Friday, June 16th 2017, 4:48pm

Author: SEGGER - Schoenen

Updating a value (TEXT STRING) within a DIALOGUE

Hi, Yes, update the text in the dialog within the same thread as it was created. If you have a TEXT widget within a dialog you can get the handle of the TEXT widget and set the text like shown below. Of course, the handle of the dialog must be known. C/C++ Source code 1 2 hItem = WM_GetDialogItem(hDialog, ID_OF_TEXT_WIDGET); TEXT_SetText(hItem, "New string");" Regards, Sven

Friday, June 16th 2017, 4:44pm

Author: SEGGER - Schoenen

ILI9488 not more than 16bit

Hello Pierre, Unfortunately not, GUIDRV_FLEXCOLOR_F66709 supports only 16bpp. Regards, Sven

Friday, June 16th 2017, 4:41pm

Author: SEGGER - Schoenen

Swipelist blocks while decelerating

Hi, I checked your code, but on my end it is working fine. The progressbars are getting updated while the SWIPELIST is decelerating. Regards, Sven

Friday, June 9th 2017, 4:57pm

Author: SEGGER - Schoenen

Issue about BmpCvt.exe with 32bit bitmap

Hi, I have send you the file already. Not sure if it is a good idea to post your email address publicly, so I have deleted it from your last post. Regards, Sven

Friday, June 9th 2017, 9:39am

Author: SEGGER - Schoenen

Issue about BmpCvt.exe with 32bit bitmap

Hi, I have found the issue. The problem is related to the Bitmap Converter. When loading an image without alpha channel (which is true for the .bmp file) the Bitmap Converter offers the possibility to save the image as 32bit per pixel. In this case it adds an alpha channel. Unfortunately, the alpha channel added to the pixel had the wrong value. In our case the alpha channel was 0xFF for every pixel which means transparent when using GUICC_8888. There are two ways to get around of this. First, c...

Friday, June 9th 2017, 8:17am

Author: SEGGER - Schoenen

Swipelist blocks while decelerating

Hi, Which version of emWin are you using (found in GUI_Version.h)? Do you have a code sample, which allows me to reproduce the behavior? Regards, Sven

Friday, June 9th 2017, 8:15am

Author: SEGGER - Schoenen

Issue about BmpCvt.exe with 32bit bitmap

Hi, which device are you using and what is the color conversion (GUICC_xxx) in your LCDConf.c. If the color conversion is GUICC_M8888I you have to save bitmaps as 'True color with alpha, r/b swapped, alpha inverted'. This would explain the black screen because of the inverted alpha channel. Any pixel which should be visible will invisible if the alpha channel doesn't fit to the color conversion. Regards, Sven

Thursday, June 8th 2017, 4:59pm

Author: SEGGER - Schoenen

GUIDRV_07X1

Hi Paulo, As far as I know, this driver is not included in the emWin version provided by Keil. In this case you need to purchase it from us. To get an offer please contact info@segger.com. Regards, Sven

Thursday, June 8th 2017, 2:06pm

Author: SEGGER - Schoenen

LISTVIEW scroll value

Hi, yes, this is possible. Unfortunately, this will only work if you are using the emWin source code because it is necessary to recompile the library. If you are using the source code you could add the line below to your GUIConf.h: C/C++ Source code 1 #define LISTVIEW_SCROLLSTEP_H_DEFAULT 30 Regards, Sven