Wednesday, April 25th 2018, 10:21pm UTC+2

You are not logged in.

  • Login
  • Register

Search results

Search results 1-20 of 562.

Monday, April 23rd 2018, 10:58am

Author: SEGGER - Schoenen

emWin and driver for SPI Mono Display

Hi, Quoted If my controller is not in the list of supported - do I understand correctly that I need to take GUIDRV_Template.c and rework it for me? Yes. The most important function of the driver to be implemented is _SetPixelIndex() once this is working you should be able to draw onto the LCD. But this won't have the best performance because you would write each single pixel separately. Once the _SetPixelIndex() is working properly you can start to optimize the driver by reworking the DrawBitlin...

Thursday, April 19th 2018, 4:45pm

Author: SEGGER - Schoenen

flicker issue

Hi, Did you implemented multi buffering properly in your LCDConf.c? It is not required to enable two layers for multi buffering. Attached is an example LCD configuration for an STM32F7.

Thursday, April 19th 2018, 4:42pm

Author: SEGGER - Schoenen

First Time TFT programming

Hi, Unfortunately, there is no such tutorial. But you might want to check out our website, there we have a lot of trial packages fro different kind of STM32 evaluation boards. For example this one: https://www.segger.com/evaluate-our-soft…746g-discovery/ This package requires an Embedded Studio project. Embedded Studio can be downloaded for, no code size limitation: https://www.segger.com/embedded-studio/ You can also take a look into the STM32 cube packages from ST. There are also a lot of read...

Thursday, April 19th 2018, 4:36pm

Author: SEGGER - Schoenen

emWin and driver for SPI Mono Display

Hi, The GUIDRV_Lin driver works only with a direct interface and access to a framebuffer (like an external SDRAM shared with the LCD controller). To communicate with display (or an LCD controller) via SPI you would need another driver for an indirect interface. This would be, for example, the GUIDRV_FlexColor driver. emWin does not support displays, it supports display controller. To find out which driver you need you should first find out which controller is used on your display and then check ...

Monday, April 16th 2018, 10:13am

Author: SEGGER - Schoenen

flicker issue

Hi, to avoid flickering we recommend to use multi buffering. Just call WM_MULTIBUF_Enable(1) right after GUI_Init(). Of course, this requires emWin to be configured to use multiple buffers, but in the LCDConf.c coming from ST this should be done already. The use of memory devices can help a little bit against flickering but is not as good as multibuffering. With memory devices only one window will get buffered and not the entire screen. If there is not enough memory available to create a memory ...

Friday, April 13th 2018, 12:53pm

Author: SEGGER - Schoenen

SEPS525 Driver Issue

Hi, Of course, forgot it Regards Sven

Friday, April 13th 2018, 11:30am

Author: SEGGER - Schoenen

SEPS525 Driver Issue

Hi, Right now I have no idea what causes this behavior. Attached you will find a sample LCDConf.c we have used for this controller. In your code you use: C/C++ Source code 1 2 3 4 5 #if (NUM_BUFFERS > 1) GUI_MULTIBUF_ConfigEx(0, NUM_BUFFERS); #endif Not sure if this has an impact but multibuffering is only available with the GUIDRV_Lin driver. Did you tried to check the data which are send from emWin to the controller? Are these data as expected? Regards Sven

Thursday, April 12th 2018, 11:47am

Author: SEGGER - Schoenen

multipage motion without touch screen (without PID)

Hi, Yes, this is possible. You could fake touch input or use the WM_MOTION API of the Window Manager. I recommend the to use the animation module of emWin. If something should be animated without user input I prefer this. Please take a look into the example attached. Regards Sven

Thursday, April 12th 2018, 11:42am

Author: SEGGER - Schoenen

gif image

Hi, I have taken a look into your files. The GIF file seems not to be animated. Regarding the c-file, simply copy the content into your application and call GUI_DrawBitmap(&bmpreloadersm, xPos, yPos). If you want to have an animated GIF, please check the code attached. The c-file was created with the Bitmap Converter. Open the Converter and select File -> Create animated Sprite from GIF (I guess you did it the same way). The example shows two ways. One way is to use the GIF directly and manage d...

Thursday, April 12th 2018, 10:53am

Author: SEGGER - Schoenen

Fill circle with a border

Hi, I would have suggested to cal GUI_FillCircle() twice... You say you don't have enough memory for a memory device, but there are other ways (depending on the driver) which can be used. Unfortunately, these solution require some memory, too. Which driver are you using? With the GUIDRV_Lin you can use multi buffering (of course this requires a lot of memory). If you are using the GUIDRV_FlexColor driver you could use a cached version of the driver. Almost all the other driver offer a cahced ver...

Thursday, April 12th 2018, 10:40am

Author: SEGGER - Schoenen

how to know a window is created completely

Hi, Yes, this is related to early clipping. Unfortunately, you can't really know how often a WM_PAINT occurs, beacuse it can have several reasons like the number of child windows or if the child windows transparent or not. But, you can set the WM_CF_LATE_CLIP flag for a specific window. This causes the clipping to be done while inside WM_PAINT and the this message will occur only once. Unfortunately, this will have an impact on the performance. You can also react on WM_POST_PAINT which will be s...

Thursday, April 12th 2018, 10:26am

Author: SEGGER - Schoenen

STEMWIN porting on ORIENT LCD

Hi, 1. This sounds like a problem related to an overload of the bus the SDRAM and the DMA2D is connected to. We experienced this also on the STM32F4xx and on the STM32F746. The only solution we have found is to reduce the workload on the bus. Try to keep the layer as small as possible and to avoid unnecessary drawing operations. 2. It seems the function GetPixelFormat() returns only values for 16 bit per pixel. When the LCD controller gets initialized it always gets configured for 16bpp. But if ...

Thursday, April 12th 2018, 10:18am

Author: SEGGER - Schoenen

dimension of backround window

Hi, No, this not a mistake from your side. The desktop window gets created with a size of 16383 pixels in each direction as default. Just call add the code below right after GUI_Init() to get a desktop window with the size of the screen. C/C++ Source code 1 WM_SetSize(WM_HBKWIN, LCD_GetXSize(), LCD_GetYSize()); The reason behind this is that if using virtual screens it has to be large enough, that is why we decided to make it that large. So if you are using virtual screens be careful when reduci...

Thursday, April 12th 2018, 10:11am

Author: SEGGER - Schoenen

GUI_BMP_Draw() Drawing 8bit bitmap file failed

Hi, I was able to reproduce the issue and fixed it. You got a valid GUI license number, please contatct the emWin support directly to get a fixed version. Regards Sven

Friday, April 6th 2018, 9:10am

Author: SEGGER - Schoenen

widget - swipe list - change background color

Hi, Yes a owner function will work. With newer emWin versions it is possible to make the SWIPELIST transparent but with emWin V5.40 it's not. Here is an owner draw you can use to clear the area. I react on WIDGET_ITEM_DRAW_TEXT because it is the very last operation and I clear the area after drawing the last string. Just set this function with SWIPELIST_SetOwnerDraw(): C/C++ Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40...

Thursday, April 5th 2018, 9:45am

Author: SEGGER - Schoenen

Prior Versions of emWin User Manual

Hi, I'm sorry, I thought the manual is included. Unfortunately, the manual is to large to be attached here. I have send the manual to you by mail. Regards Sven

Thursday, April 5th 2018, 9:38am

Author: SEGGER - Schoenen

How to set background color for transparent image

Hi, Then just skip the part where I set a different bitmap and draw always the same.. C/C++ Source code 1 2 3 4 5 6 7 8 9 10 11 12 if (BUTTON_IsPressed(pMsg->hWin)) { Color = GUI_GREEN; pBm = &bmBitmapPressed_50x50; // Don't do this } else { Color = GUI_RED; pBm = &bmBitmapUnpressed_50x50; // And also not this } GUI_SetBkColor(Color); GUI_Clear(); xPos = (WM_GetWindowSizeX(pMsg->hWin) - pBm->XSize) / 2; yPos = (WM_GetWindowSizeY(pMsg->hWin) - pBm->YSize) / 2; GUI_DrawBitmap(pBm, xPos, yPos); // ...

Thursday, April 5th 2018, 9:35am

Author: SEGGER - Schoenen

Skinning LISTVIEW HEADERs

Hi, good idea As STemWin user you can buy the source code upgrade. Regards Sven

Thursday, April 5th 2018, 9:33am

Author: SEGGER - Schoenen

widget - swipe list - change background color

Hi, Please try the example below. Does it work on your side? C/C++ Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 #include "DIALOG.h" #include <stdio.h> /********************************************************************* * * Externals * **********************************************************...

Wednesday, April 4th 2018, 10:45am

Author: SEGGER - Schoenen

widget - swipe list - change background color

Hi, It seems you are using a precompiled version of emWin provided by ST. Have you made changes to the GUIConf.h (which is not recommended because those defines are compile time switches and might lead to strange behavior if changed later on)? Which device are you using? According to your GUIConf.h and the version you use the default color management of emWin. This means that emWin calculates internally in this color format and expects colors in this format: ABGR - a 32 bit color value where 8 b...