Skip to main content
Senior
June 27, 2024
Solved

Touch controllers natively supported/integrated by/into TouchGFX

  • June 27, 2024
  • 1 reply
  • 1728 views

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

Best answer by Mohammad MORADI ESFAHANIASL

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.

1 reply

ST Employee
June 27, 2024

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 

TouchGFX Board SetupsTouchGFX Board Setups

I hope this answers your question

RickoAuthor
Senior
June 27, 2024

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 :)

ST Employee
June 28, 2024

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:
Bill of Material for STM32U5G9J-DK2Bill of Material for STM32U5G9J-DK2

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:

Touch controller code used in STM32U5G9J-DK2Touch controller code used in STM32U5G9J-DK2

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