cancel
Showing results for 
Search instead for 
Did you mean: 

interaction in button in touchgfx not work

jhasa.2
Associate III

I use stm32f767 and implement one button in screen

the reaction of the button such as change screen color or run functions not works

why?

21 REPLIES 21
Yoann KLEIN
ST Employee

Hello @Community member​ ,

Which display are you using ?

If it is the X-CUBE-DISPLAY, there is no touch sensor implemented in it.

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX

no I use touchscreen FT5316

touch is ok but the interaction not works.

why?

@Yoann KLEIN​ 

Then the issue comes from the driver of your touchscreen and/or the hardware configuration.

You will have to debug it or find examples/tutorials online.

A good starting point would be to put a breakpoint in your STM32TouchController::sampleTouch(int32_t& x, int32_t& y) method, to see if every time you click, this function is triggered with the right coordinates.

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX

the coordination is accurate equal to button coordinates in touchgfx.

if it trig with worst coordinate why it change the button picture?

0693W00000Svsh5QAB.png

Maybe better is show here your interaction code.

I use change box color.

It is not happening anything.

I use change box interaction

It doesn't need any code

but it is not working... .

Your box1 is background? If yes primary you fail use box without ok canvas buffer setup.

Secondsary is box1 visible ?

...

in the simulator it changes

but in the real it isn't anything... .

You dont reply to one ? Yes in simu ... , but simu dont simulate all ...

Click in TGFX designer to screen and enlarge canvas buffer