Search Results

Search results 1-20 of 86.

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

  • Multiple language support

    anuj.tanksali - - emWin related

    Post

    Hello, How do I go about adding multiple language support. Am using iMXTR1064 with SDRAM for LCD buffer and external flash WITHOUT FILESYSTEM which I plan to use for storing strings, fonts, bitmaps etc. Other than English, I need to add support for French, German, Dutch and Chinese. How do I go about generating font files for languages mentioned above using the font convertor?. Also is there a way to generate a single font file with all the sizes and fonts. Currently for English I have to genera…

  • Hi, Thanks for your reply. By "separate window" do you mean using image widget for each of the drawings? ? If yes then not sure if possible as for the first drawing I can use image widget as it is GIF which I want to show but for drawing other 2 areas I use GUI_draw_arc and GUI_MEMDEV_Writeat functions If you mean using separate child windows for drawing 3 areas then I think it can be done but handling will be little complex. Regards, Anuj

  • Hello, I was not able to understand clearly. My paint event is SetBkColor(color); GUI_Clear(); if(variable1) { GIF_drawsub(); } if( variable2) { variable2 = 0; drawArc() } if( variable3) { variable2 = 0; GUI_MEMDEV_WriteAt(); } I want to retain the arc and memdev image drawn earlier on LCD. How do I do that?. As in above code I am drawing everything each time PAINT is called it takes time. Thanks Regards, Anuj

  • Hello, Thanks for your reply. Is my code correct above. if I want to update an area continuously and update different areas intermittently do I need to draw all areas in PAINT as shown in above code. As currently GUI_Clear is called I may have to redraw everything. Can GUI_Clear be avoided and clear only specific areas which have to be updated and draw only those areas. Thanks Regards, Anuj

  • Hello, I have a GIF animation which I want to continuously show on a dialog window based on a variable. Currently the animation works but it slows down the system. I have a function which is called every 25msec in my super loop while(1). In the function I get the Sub image from the GIF image and call WM_InvalidateArea to update only the rectangle area of the GIF image shown. I have other areas too for which I call the same WM_InvalidateArea to be updated based on other variables but this is not …

  • Dialog Navigation slow

    anuj.tanksali - - emWin related

    Post

    Hello, I was able to display the bmp and rotate it through memdev. I created the memdev's required in a different function, performed the rotate and kept the memdev ready. I displayed the memdev in WM_PAINT by GUI_MEMDEV_WriteAt function GUI_SetBkColor(GUI_GRAY) GUI_Clear(); GUI_MEMDEV_WriteAt(hDst,DIAL_SCREEN_HOME_ARC_CENTER_POS_X-(236/2), DIAL_SCREEN_HOME_ARC_CENTER_POS_Y-(236/2)); drawArc(); This is working but the screen loading performance is not improved much. My main intention is to impro…

  • Dialog Navigation slow

    anuj.tanksali - - emWin related

    Post

    Hello, I tried out as per the link given but facing some issues. I have made a function which does the task of writing to memory device. My code is as below, static GUI_MEMDEV_Handle hDst = 0; static GUI_MEMDEV_Handle hSrc = 0; int xSize = 235; int ySize = 235; hSrc = GUI_MEMDEV_CreateFixed32(0, 0, xSize, ySize); GUI_MEMDEV_Select(hSrc); GUI_DrawBitmap(bmdial , 0, 0) GUI_MEMDEV_Select(0); hDst = GUI_MEMDEV_CreateFixed32(0, 0, 500, 500); GUI_MEMDEV_Select(hDst); GUI_SetBkColor(GUI_TRANSPARENT); G…

  • Dialog Navigation slow

    anuj.tanksali - - emWin related

    Post

    Hello, Thanks, I checked out the above link and will try it. There is a onpaint function for the dialog so the above code should go in onpaint or in my normal superloop while(1)? as we have to rotate the bmp at runtime depending on angle. If there is anything else we can try to achieve good performance with 2 buffers and without WM_CF_MEMDEV set please let me know as using 2 buffers is still slow. Am using iMXRT1064 controller. is there anything on the controller side which can be done other tha…

  • Dialog Navigation slow

    anuj.tanksali - - emWin related

    Post

    Hello, Thanks for your reply. I have the circular image with arrow at 90 deg position. Can we use memdev to draw the image and then rotate it. I think it will be possible. please me know. Thanks Regards Anuj

  • Dialog Navigation slow

    anuj.tanksali - - emWin related

    Post

    Hello, Thanks for the reply. I have already used the LCD_SetDevFunc() to set the custom copy buffer function. I will check the DMA option. Will using 3 buffers cause an improvement in speed regarding dialog loading? As mentioned above the knob widget seems to slow down dialog load quite a bit. Can we achieve the knob functionality with some other methods like memdev for drawing the bmp and memdev_rotate for rotating the bmp. if there is any sample project please share it. Thanks Regards, Anuj

  • Dialog Navigation slow

    anuj.tanksali - - emWin related

    Post

    Hello, I have a number of dialog windows for screens and navigate from one dialog to another. I had used RGB565 with multibuffering and Memdev enabled using WM_SetCreateFlags(WM_CF_MEMDEV) but observed dialog loading is slow. I call GUI_exec() continuously in my super loop while(1) to update the dialogs. I performed the following configurations below to check the dialog loading in each case. With WM_SetCreateFlags(WM_CF_MEMDEV) and #define GUI_BUFFERS 2 - Navigation between dialogs is slow. With…

  • Reistive touch issue

    anuj.tanksali - - emWin related

    Post

    Hi , Thanks for your reply. I realized this earlier and had already corrected the code but still same issue. Please see latest code below, touchState is declared as static uint16_t touchX = 0; uint16_t touchY = 0; uint8_t pressed = FALSE; static uint8_t prevState = FALSE; // Call the function to get the raw values of x,y pressed = Touch_getPositionRaw(&touchX, &touchY); if(pressed == TRUE){ // Set the parameters to send to emwin. touchState.Pressed = TRUE; // Set the values; touchState.x = touch…

  • Reistive touch issue

    anuj.tanksali - - emWin related

    Post

    Hello, Am using iMXRT1064 with Emwin library and 7" resistive touch screen. I am using a custom ADC driver to read x and y values. // points p0,p1,p2 x and y pixels int touchRefValX[3] = {40,760,400}; int touchRefValY[3] = {24,240,456}; // ADC x and y values at above points int touchSampleValX[3] = {2552,1528,1954}; int touchSampleValY[3] = {2295,1960,1803}; the range of ADC values for x and y are always in around 1400 counts to 2500 counts.for 12 bit range should be 0-4096. // init GUI_TOUCH_Ca…

  • Colors issue on Hardware

    anuj.tanksali - - emWin related

    Post

    Hi Florian, Thanks for the reply. Just a point to mention the colors look same when compared with the colors on LCD but on the LCD they look dull when compared with the simulation. Regards, Anuj

  • Colors issue on Hardware

    anuj.tanksali - - emWin related

    Post

    Hi, I am using a simulator for my application and porting the code to my Hardware on iMXRT1064. I see a difference in colors on my PC simulation application when compared to colors on the LCD with hardware. color mode is RGB 565 on both simulation and my hardware. Am using emwin version 5.50 on hardware. The colors on the hardware look dull compared to the simulation on PC. Does emwin have any setting to improve the colors on the hardware. Thanks Regards, Anuj

  • Font size issue

    anuj.tanksali - - emWin related

    Post

    Hello, How to i compare windows fonts sizes with fonts sizes generated from font converter. On windows for e.g. word application if i select century gothic 12. will it be same as selecting century gothic 12 pixel on font convertor. I am not sure as the font sizes appear different. So how do i select the correct font size in font convertor for any windows font size in Microsoft Word application. Thanks Regards, Anuj

  • Font Converter issue

    anuj.tanksali - - emWin related

    Post

    Hello, Thank you for your reply. But as the font is different in any case should it not generate different name file. suppose i have used one bold pt font and one regular font in my project with different pts. if the file names for both are same suppose then when i will generate the 2nd font as it has same name it will replace the first font file in my project which is not correct. If one does not keep a track then it is more likely that the font applied for widgets will be changed unknowingly. …

  • Font Converter issue

    anuj.tanksali - - emWin related

    Post

    Hello, I am using Font converter ver 5.48d. I generate the fonts by selecting using pt option instead of pixels. I have observed that when i select Century Gothic Regular font 9pt and 10pt, for both the file name generated is the same i.e. Century Gothic17.c. is this expected? . Visually the font seem different. For bold option and different pt size then also file generated is Century Gothic17.c. Thanks Regards, Anuj

  • Hello, I used the latest version 6.14 simulation and my same code worked fine without any issue. I am currently using 5.48 version. I observed the emwin memory usage by using GUI_ALLOC_GetMaxUsedBytes and in 6.14 version the usage bytes is almost double than in case of 5.48 version. Version 5.48 and 6.10 give me the same application crash issue with GUI_MEMDEV_BlendWinBk but issue is not present for 6.14 version. Is this an issue with 5.48 version not allocating enough memory? Thanks Regards, An…

  • Hello, Thanks for your reply. I cannot share the code but i debugged the issue and found that when i reduce the widgets from the widget resource table then the issue is not observed const GUI_WIDGET_CREATE_INFO ScreenWidgetTable[] = { \ \ { WINDOW_CreateIndirect, NULL,GUI_ID_WINDOW_0,0,0,0,0,0, 0, 0 }, { BUTTON_CreateIndirect, "CANCEL", GUI_ID_BUTTON_CANCEL,0,0,0,0,0, 0, 0 }, { BUTTON_CreateIndirect, "CONFIRM", GUI_ID_BUTTON_CONFIRM,0,0,0,0,0, 0, 0 }, //{ TEXT_CreateIndirect,"",GUI_ID_TEXT_VARIA…