2022-09-18 11:34 PM
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?
2022-09-20 12:27 AM
Hello @Community member ,
Which display are you using ?
If it is the X-CUBE-DISPLAY, there is no touch sensor implemented in it.
/Yoann
2022-09-20 02:13 AM
no I use touchscreen FT5316
touch is ok but the interaction not works.
why?
@Yoann KLEIN
2022-09-21 01:15 AM
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
2022-09-21 01:21 AM
the coordination is accurate equal to button coordinates in touchgfx.
if it trig with worst coordinate why it change the button picture?
2022-09-21 07:13 AM
Maybe better is show here your interaction code.
2022-09-21 10:08 PM
I use change box color.
It is not happening anything.
2022-09-21 10:37 PM
I use change box interaction
It doesn't need any code
but it is not working... .
2022-09-22 05:21 AM
Your box1 is background? If yes primary you fail use box without ok canvas buffer setup.
Secondsary is box1 visible ?
...
2022-09-23 06:26 AM
in the simulator it changes
but in the real it isn't anything... .
2022-09-23 07:37 AM
You dont reply to one ? Yes in simu ... , but simu dont simulate all ...
Click in TGFX designer to screen and enlarge canvas buffer