2024-06-27 05:09 AM
Hi,
where do I find a list of touch controllers supported by TouchGFX "out of the box" so I don't need to write any drivers?
Thank you
Solved! Go to Solution.
2024-07-01 03:11 AM
Yes, with an I2C touch controller it is fairly simple. You just need to read from and write to the corresponding registers. Keep in mind that this code is for TouchGFX to receive the touch events, and TouchGFX does not support more than one touch simultaneously. That is the reason for the code to be fairly simple.
2024-06-27 05:29 AM
Hello @Ricko ,
You can use any touch controller with TouchGFX, you just need to provide the functionality for TouchGFX to use the touch controller. You can read about it here .
But, if you are looking for a "Out of Box" solution, then you should choose one of the boards that is available in the TouchGFX designer
I hope this answers your question
2024-06-27 09:13 AM
Thank you @Mohammad MORADI ESFAHANIASL
unfortunately cannot use a dev kit because we are developing our own PCB to control all other actuators and sensors in the system.
I also tried to look at the schematics of the dev kits to see if I could see which touch controller they use but could not find that out.
There must be a way to know which controllers are used in the dev boards... how?
Thank you :)
2024-06-28 03:28 AM - edited 2024-06-28 03:29 AM
I see. To figure out which touch controller is used, you should find the name of the display that is mounted on the board, and search for that to find out what touch controller is used. For instance, if you look at STM32U5G9J-DK2 board Bill of Material (available here), you can see that which LCD has been used:
However, I recommend not worrying about the touch controller that much. Try to find a touch controller that uses an I2C connection, and then you can get inspiration from the STM32U5G9J-DK2 project that is available in the TouchGFX designer by examining the code inside target/STM32TouchController.cpp:
But, keep in mind since you are using your own custom board, you need to set up the I2C configuration through your STM32CubeMX project. The process is explained here.
2024-06-28 07:03 AM
Thank you @Mohammad MORADI ESFAHANIASL
just to confirm. Are you saying that - apart from configuring the I2C - all the code that needs to be written for a totally custom touch controller - literally any I2C touch controller - is just very few lines similar to the ones in your screenshot above (obviously specific to the controller I decide to use)?
My worry was that I had to write more coda than that... Is that all?
Thank you
2024-07-01 03:11 AM
Yes, with an I2C touch controller it is fairly simple. You just need to read from and write to the corresponding registers. Keep in mind that this code is for TouchGFX to receive the touch events, and TouchGFX does not support more than one touch simultaneously. That is the reason for the code to be fairly simple.
2024-07-01 08:21 AM
Thank you @Mohammad MORADI ESFAHANIASL :folded_hands:
2024-07-03 02:26 AM
You are very welcome!
Good luck