HAL Library 23- TOUCH for STM32Fxxx

The TOUCH library is a “high” level library for touch operations. It requires low-level drivers for communication with your sensor/device, but for high level for user, always the same functions are used. This allows you flexibility between multiple low-level device drivers to be used with in your project if needed and also allows single lib to have the same features for all projects.


Read more about new HAL libraries


  • Custom selectable driver
  • Built-in drivers for STM32F429-EVAL and STM32F7-Discovery
  • Allows multi-touch up to 10 fingers
  • Allows rotation like LCD to have the same coordinates


  • HAL
  • TM
    • STM32Fxxx HAL
    • defines.h configuration file
    • TM I2C
    • TM TOUCH FT5336 for STM32F7-Discovery board
    • TM TOUCH TS3510 for STM32F429-EVAL board

Functions and enumerations

For all functions list, including setting up custom driver, please check my library API.


Projects are available on Github, download all libraries below.


Owner of this site. Application engineer, currently employed by STMicroelectronics. Exploring latest technologies and owner of different libraries posted on Github.

You may also like...

Read before commenting!

Before you make a new comment, make sure you agree with things listed below:

  • - Read post to make sure if it is already posted what you are asking for,
  • - Make sure you have the latest version of libraries used in your project,
  • - Make a clean and grammatically correct written message,
  • - Report as many details as possible, including what have you done so far,
  • - Do NOT post any code here. Use Pastebin,
  • - Do NOT post any error codes here. Use Pastebin,
  • - Specify STM32Fxxx family and used Discovery/EVAL/Nucleo or custom made board,
  • - Make sure your clock is set correct for PLL,
  • - If you are using my HAL drivers, please check this post how to start.
Comment will be deleted on breaking these rules without notification!