2025-03-27 3:25 AM - last edited on 2025-03-27 3:31 AM by Andrew Neil
Hello,
I use tft screen with touch panel. All buttons react on the touch correct beside radioButton and toggleButton. I used "small version" of toggleButton and medium of radioButton. Screen 240x320. When both of that buttons are on the centrer of the screen it correct reacts to touch. When that buttons are on the left or on the right of screen they not react on the touch. I am sure that touch screen library works correct. Reading of touching coordinates works very well and the measurement is accurate. It looks more like the error lies more with TouchGFX.
2025-03-27 3:33 AM
Can you print the touch coordinates on the screen and create a video of this effect?
2025-03-27 3:48 AM
2025-03-27 3:57 AM
This doesn't look like a photo of the screen, but a screenshot from the simulator.
It doesn't work in the simulator either?
2025-03-27 4:05 AM
I attached print screens from designer , not simulator, to show which localisations of that buttons doesn't works. I tested it on physical screen. Is it clear now?
2025-03-27 5:11 AM
Hello @Jarwu ,
Can you share your full project (even if the issue happens on hardware only)?
What hardware do you use? Is it custom or is it a TBS from TouchGFX Designer?
How did you test the touch coordinates? You say they work very well, how did you make sure of that?
Is there anything else that I should know about your project to be able to help you best?
Regards,
2025-03-27 5:35 AM
Hello,
It is custom on BlackPill. I am sure of correct reading of coordinates which are set in STM32TouchController::sampleTouch(int32_t& x, int32_t& y)
That coordinates are visible on the screen. It is also set by wildcard in textArea. In attached pictures you have view of right,top and left bottom.
Please try understand my point of view. I tested all possibilities which was on my side before I have sent this post today.
What I don't know is how the TouchGFX algorithm defines the touch field for a given component and then checks it. From my side, it looks like there's a bug somewhere.
2025-03-27 5:47 AM - edited 2025-03-27 5:49 AM
I don't see a finger on the screen. How is it registering touch if no finger is on the screen?
2025-03-27 5:51 AM
You have on the screens coordinates of last touches. First point top,right and second left, bottom. Data are updated only if touch happen.
I hope it is clear for you.
2025-03-27 5:53 AM
The touch coordinates are updated in STM32TouchController::sampleTouch(int32_t& x, int32_t& y) if is true