Search Results

Search results 1-14 of 14.

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

  • EDIT_SetValue does not return

    kain2609 - - emWin related

    Post

    Hey, I found out that the program was not hanging in the emwin Library but in a callback function / the event 'WM_NOTIFICATION_VALUE_CHANGED' of my application was waiting for a mutex there

  • EDIT_SetValue does not return

    kain2609 - - emWin related

    Post

    Hello, I am using the emwin library as part of a bigger embedded application. I am experiencing a bit strange behavior: I am using the EDIT_Widgets to visualize some data (like current temperature, etc). My dialog looks like the following C Source Code (29 lines) This is a very simplified example. My problem is here, that the function "EDIT_SetFloatValue( hItem, fDummy );" in line 28 does not return. Since this functions hols a mutex in my application, it blocks every functionality that needs th…

  • Hello, this is the LCDConf.c (i attached the file because the post was too long) And these are the defined API functions: C Source Code (44 lines)

  • Hello, i digged more into our implementation and saw the following: We are using the 'GUIDRV_FLEXCOLOR'-Driver and the mode 'GUICC_M565'. When i try to take the screenshot using 'GUI_BMP_Serialize' the function 'pfReadM16_A1' is called multiple times to read the data from the LCD. C Source Code (8 lines) For example this function returns 3 2-byte-elements: 0xF79E 0xF79E 0x0000 The BMP-File is generated by: C Source Code (15 lines) The '_WriteByte2File' functions works as expected since every byt…

  • Hey Adrian, the '_WriteByte2File()' seemed to work well, the header of the Bitmap is written correct. However i simplified the function to write each byte instantly to the file: C Source Code (16 lines) So this does not seem to be the error, since i got *.bmp Files that i can open with any ImageViewer. However, the image is still just black. Do i have to change something else? Is the way i select the LCD as device the wrong way? Kind Regards,

  • Hey Adrian, i posted my function in the first post and you said that this function works very well on your end? Even if i debug and step through my implementation, i see that the Bytes passed to the C Source Code (1 line) function are correctly written into the buffer array and then to the file. Kind Regards,

  • Hey Adrian, okay, i just want to write the content of the LCD to the BMP file. I inserted Source Code (1 line) just before GUI_BMP_SerializeExBpp, but the Bitmaps are still empty. Or do i have to use a memory device to get the Bitmap? Kind Regards

  • Hey Adrian, i figured out one error in my software when i tried to copy the Bitmap over Ethernet, now i access it directly from my sd card. However, i just get unicolored bitmaps, for example i tried to save a 320x240 screenshot but the bitmap is just completely red (i uploaded it as attachement). Do you have any idea why this is that way? Kind Regards,

  • Hey Adrian, the dimension is 640x480. I just tested the center of the screen. Kind Regards,

  • Hey Adrian, why do you think i got a local "buffer" array? It is just declared globally and i use it in both functions. Kind Regards

  • Hello, i am using emWin in one of our µ-Controller Projects. I try to make a 'screenshot' of the GUI using the following Code: C Source Code (28 lines) However, i can't get a working screenshot. Am i doing something wrong here? While debugging i also saw that 'Data' ist just 0x00 most of the time. Is this correct?! Hope someone can help me with this. Thanks in advance and kind Regards

  • Hello, i got the following Problem: I set an EDIT Widget to Float Mode and when i try to assign a float value to the edit field emWin does not return. In a simplified way: C Source Code (1 line) => does not return. So i set the Floatmode to allow values 10 <= x <= 50. After that, i try to set the value 22 but here the SetFloatMode function does not return. However what is strange, is, if i set the value 30 instead of 22, the function does return: C Source Code (1 line) => does return. Am i missu…

  • Hello, in my application i want to use 2 different types of buttons and use 2 different skins to distinguish between them. Currently i am just using the FLEX Skin which i customized by changings its properties. However, is there a way to use 2 different types of the FLEX skin (for the same widget) which are just different regarding to their properties? Thanks

  • EDIT Enable/Disable

    kain2609 - - emWin related

    Post

    Hello, i can't find an API function to set the state of an EDIT Widget to enabled or disabled, they are just enabled by default. I tried EDIT_SetFocussable and EDIT_SetInsertMode, but none of them work for me. How do i set an edit field to a disabled state? Kind Regards