LIstwheel do not work

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

    • LIstwheel do not work

      Hi
      I do have a resitive touch xpt2046 and a ssd1963 screen.
      All widgets work fine except the listwheel.
      When i do touch it, it become highlightet in the first row, but it do not move
      listwheel_getpos return zero
      i do use GUI_TOUCH_Exec(); to update
      while (1)
      {
      HAL_Delay(10);
      GUI_TOUCH_Exec();
      GUI_Exec();
      /* USER CODE END WHILE */
      /* USER CODE BEGIN 3 */
      }
      /////
      case WM_NOTIFICATION_RELEASED:
      // USER START (Optionally insert code for reacting on notification message)
      hItem = WM_GetDialogItem(pMsg->hWin, ID_LISTWHEEL_0);
      uint16_t position = LISTWHEEL_GetPos(hItem);
      // position = 15 ;
      LISTWHEEL_SetSel(hItem, position);
      // USER END
      break;
      //////
      where to look after the issue ...listwheel do not move ...
      best regards
      Hjalmar
    • Hi,

      Are the function GUI_X_Delay() and GUI_X_GetTime() are properly implemented?

      Attached is are some examples to be used with FreeRTOS/embOS or without RTOS. For the non-ROTS variant you have to set up a hardware timer wich increments OS_TimeMS every ms.

      EDIT: Forgot the attachment.

      Regards,
      Sven
      Files
      • GUI_X.zip

        (4.48 kB, downloaded 89 times, last: )
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.