cancel
Showing results for 
Search instead for 
Did you mean: 

Touchgfx button press and hold issue

SS.40
Associate

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.

2 REPLIES 2
JTP1
Lead

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
Chief II

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