Search Results

Search results 1-20 of 38.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Thank you a lot for your clarification! I'm mostly an STM32 user so that's good news from my side! Best regards, Mark

  • Probably a dumb question... the versions for STM32 aren't the "ST emwin" versions released by ST in their STM32Cube package? Am I missing something? Thank you. Best regards, Mark

  • I've managed to make the Snap function working, I was calling periodically WM_Exec() but not GUI_Delay(1) and I guess this was not refreshing some internal library counters. I've still a couple of questions if anybody can help me... Is there an effective way to know when the motion is in progress (and when it ends) to differentiate the touch button pressed/released from the motion event? I want to avoid the buttons to be activated when the user is swiping between the pages. Thank you! Mark

  • Hello, I would like to create something similar to what I've depicted below, a dialog made of 4 full-screen "pages" (each page has its own widgets) that the user can navigate through a swipe gesture. I usually create a Window dialog with its child objects with the GUI_WIDGET_CREATE_INFO approach for the individual pages but I'm not sure if this is the correct approach. So far I've taken the Move Windows sample as a reference: wiki.segger.com/WM_MOTION_-_Move_windows_(Sample) I've created a Dialo…

  • Quote from cilmagemlu: “Hello, an unusual way, but clearly effective if you want to scroll a child dialog with a swipe. I'd make a swipelist in a main dialog, then add an empty item and attach a child dialog to that item. Otherwise you will have to create an additional window, then attach a child dialog to it and transmit motion messages to it whereas the swipelist already has the necessary functionality. C Source Code (86 lines)” Hello Anthony, thank you for your answer. It looks like a good id…

  • Hi all, I'm trying to setup a vertical scrolling child window inside its parent window. This child window Y dimension should be greater than the parent window so it will be partially visible according the current scrolling position. The child window contains BUTTON and TEXT objects that have to move according to the current scrolling position At the moment I've managed to create a small child window with an own button and the code looks like that: Source Code (51 lines) The child window has its …

  • Quote from SEGGER - Schoenen: “Hi, supported color mode of the driver can be found here. GUIDRV_FLEXCOLOR_F66709 does not support 18bpp. It might be necessary to set a different read function. Check out the description of GUIDRV_FlexColor_SetReadFunc66709(). You can also set a custom read function with LCD_SetDevFunc(). Attached is an example configuration. Regards, Sven ” Thank you for your support, Sven. I have solved the problem. I was not settings correctly the I/O data pins as inputs during…

  • Any ideas, on how can I fix this (or if there is a color mode which is not supported) or where should I look more in detail? Thank you! Mark

  • Hello everybody, I'm having some troubles to make a custom board with a 2" display (ST7789V display controller) work properly. I'm using a custom board with an STM32F401RET6 with STemWin 5.4401. I manage to configure the system and get to a point where I can almost see on the screen what I was expecting. To test the configuration I'm using the "_DrawPolygons" example On the STemWin configuration side: Source Code (42 lines) On the controller side, among all the configuration registers that I set…

  • Hello, I'm encountering a problem on a STemWin based application which has been developed for a STM32F7 custom board. The memory assigned for the GUI is equal to 170KB and it is part of the microcontroller embedded SRAM (total 320KB). I'm monitoring the current free memory using the library function GUI_ALLOC_GetNumFreeBytes and I've noticed that the returned value keeps slowly decreasing even if no particular redrawing actions take place (machine idle, only polling with other boards). This lead…

  • Thank you for support, Florian! RLE8 looks like a good compromise, unfortunately A565 uses too much non-volatile memory for my application. Regards, Mark

  • Hello, I would like to convert a PNG with transparency into a RGB c file with transparency and compression RLE16. Is this possible? With the supplied Bitmap converter for STM32 (v.5.44) the default conversion which is made is to RLE32 but this gives me some memory problems on the visualization (due to RAM usage I guess). I've tried also with the command line but I got stuck when I have to set the color transparency as it keeps complaining on the values I try to set (I tried 0, 0xFF, 0xFF, etc. b…

  • Quote from SEGGER - Schoenen: “Hi, Quote from Mark_C: “Is it OK like this or is it necessary to make some other setting? ” This is the only location where you need to configure the memory used by emWin. Any emWin operation which needs a piece of memory uses this memory block. The only exception is the GUIDRV_Lin driver. Its framebuffer needs to be allocated by the user. Regards, Sven ” Thank you very much for your answer and support, Sven! Best regards, Mark

  • Quote from SEGGER - Schoenen: “ The function set to pfReadM8_A1() is used to read data. As far as I know it can be different depending on the controller. We had already controller which expect the C/D line low to read data and others which expected the C/D line high to read data. But, I wouldn't expect a crash, just some strange "pixel data" being read. ” Hello Sven, thank you for your answer. It crashed in the data reading function, the function pointed by pfReadM8_A1 has apparently to be the c…

  • Hello, I've setup a project with the following hardware/software: - STM32F401xE (84MHz clock, 96KB SRAM - no internal buffer) - 3.5" Display with ILI9488 controller, 8 bit I8080 - I've assigned 32KB of SRAM memory to the emWin library (STemWin GUI_VERSION 54401) LCD_X_Config : Source Code (42 lines) I've made a test with the GUI_AA_DrawArc function and it is only working when I set GUI_AA_SetFactor(1). If I set a number higher than 1 on GUI_AA_SetFactor() the program will execute the ReadM8_A1 f…

  • Quote from LexaGb: “Hello, one of the boards I work with is also a device with STM32F207 (120MHz, 128 kB SRAM) MCU and 240x320 LCD with ILI9341 controller using 16-bit 8080I bus. No external ram. No cache for display driver. Not much "faster" system than yours. Check the following moments in your code: 1. Increase 8080I bus performance: DCX pin: set it to "1" in your "Readdata" function and toggle it "0" -> "1" in "Writecmd" function. Do not operate with it in "Writedata" function. WRX pin: set …

  • Quote from SEGGER - Schoenen: “Hi Mark, The LCD_X_8080 functions, do they use bit banging (toggling the IO pins of the MCU) or do these functions use a dedicated hardware module (e.g. a 8080 module on the MCU)? Bit banging is pretty slow and will cause a visible build up on the screen. I recommend to use a hardware module for this. Please note, it is not necessary to use an 8080 interface with this driver. You could also use SPI for example. Of course, this depends on the available interfaces of…

  • Hello, I'm setting up a GUI application sample with STemWin on a custom board with an STM32F401 microcontroller which controls a display that mounts its controller (ST7789v) and I've managed to print on a screen the classic "Hello world" example. The board doesn't have any external RAM for frame buffering so only the available memory is the internal RAM (about 64KB, it will only be used for the libraries, not enough space for a complete frame) and the internal display device memory. Since the di…

  • Thank you, Florian! Performances have definitely improved using a different DISPLAY_DRIVER as you suggested. Regards, Mark

  • Hello, I have developed a GUI with STemWin libraries for a 4.3" display. Now I need to rotate all the application upside down so in my code I called the function GUI_SetOrientationEx in the following way: Source Code (11 lines)Compared to the plain GUI without those rotations the interface is really slow (approximately 3x slower) when redrawing and changing page. Is this the normal consequence of using this kind of functions (GUI_SetOrientationEx) and what can be done to improve the redrawing? I…