Jump to content

shadow12348

Members
  • Posts

    2
  • Joined

  • Last visited

  1. Hi everyone, I've got uGFX working on my STM32L496ZG with an ILI9341 SPI display. OS - RAW32 The touch works, the library functions all work fine. I'm stuck with one issue where I have a simple screen with 4 buttons on it and listening for a touch event through geventEventWait(&gl, TIME_INFINITE); When I'm using this everything works fine and I can get the buttons to do what I want. But if I change the timeout to anything other than TIME_INFINITE OR even just comment out this single line, the buttons are not drawn on the screen. This is basically what I am doing static void drawHomeButtonsWidget(void) { GWidgetInit wi; gwinWidgetClearInit(&wi); wi.g.show = TRUE; wi.g.x = 35; wi.g.y = 20; wi.g.width = 32; wi.g.height = 32; //ghLogo = gwinImageCreate(0, &wi.g); gwinImageOpenFile(ghLogo, "test.bmp"); // Apply the button parameters wi.g.width = 240; wi.g.height = 50; wi.g.y = 120; wi.g.x = 0; wi.text = "A"; ghButtonSend = gwinButtonCreate(0, &wi); wi.g.y = 170; wi.g.x = 0; wi.text = "B"; ghButtonReceive = gwinButtonCreate(0, &wi); wi.g.y = 220; wi.g.x = 0; wi.text = "C"; ghButtonTransactions = gwinButtonCreate(0, &wi); wi.g.y = 270; wi.g.x = 0; wi.text = "D"; ghButtonSettings = gwinButtonCreate(0, &wi); } So here are my questions - 1. Why are no buttons drawn when I change TIME_INFINITE to another value OR even just remove the line? (I do check for NULL if it is not TIME_INFINITE) 2. How can I have geventEventWait be non-blocking? I would like to listen for touch events but be able to receive/send UART messages parallely or do other work infact. 3. When I display an image within this same widget, only the image and the first button are drawn, the other buttons are not drawn. Can't seem to figure out why this is. Any help is appreciated! Thanks in advance!
×
×
  • Create New...