Skip to main content
SS.40
Visitor II
June 2, 2023
Question

Touchgfx button press and hold issue

  • June 2, 2023
  • 2 replies
  • 1475 views

I have a custom board with STM32F429BIT6 connected to a 4.3inch LCD through LTDC interface. Touch panel controller is XPT2046 connected to microcontroller on SPI1. Everything works well. Except that I cannot press and hold any button. The button releases automatically even if I am holding it. The values of X and Y read from XPT2046 are stable so there is no issue in that area.

​

Is there some setting in TouchGFX code which I might be missing. On DISCOVERYF429 board (which has on board LCD) I can press and hold the button if I want to.

​

Can anyone guide me? Please.

This topic has been closed for replies.

2 replies

Graduate II
June 2, 2023

Hello. Have you test with led or uart print that your sampleTouch is constantly returning true when you press button longer ?

How you have done the touch chip reading ?

MM..1
Super User
June 3, 2023

For custom lcd you need too custom STM32TouchController.cpp and best with ask is show it here