cancel
Showing results for 
Search instead for 
Did you mean: 

radioButton & toggleButton work in centre of screen; not at sides

Jarwu
Associate

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.

12 REPLIES 12

Can you print the touch coordinates on the screen and create a video of this effect?

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

printscr1 - not works

printscr2 - not works

printscr3 - WORKS

 

When works it react to touch more on the right side.

The algorithm verifying the touch and release field coordinates for these buttons requires further refinement.

This doesn't look like a photo of the screen, but a screenshot from the simulator.
It doesn't work in the simulator either?

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

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?

GaetanGodart
ST Employee

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,

Gaetan Godart
Software engineer at ST (TouchGFX)

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.

I don't see a finger on the screen. How is it registering touch if no finger is on the screen?

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

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.

The touch coordinates are updated in STM32TouchController::sampleTouch(int32_t& x, int32_t& y) if is true