STMicroelectronics STM8S-TOUCH-LIB is a touch sensing library that provides a complete and robust free source-code solution to transform any 8-bit microcontroller into a capacitive touch sensing controller. This solution allows designers familiar with the use of standard microcontrollers to create higher-end human interfaces by replacing conventional electromechanical switches by touch sensing keys. The STM8 touch sensing library is part of the application firmware. It allows combining various capacitive sensing touchkey/linear/rotary touch sensors with traditional MCU features (communications, control of LEDs, beeper or LCD) in the same application.
Complete C source code library with firmware examples for STM8S and STM8A microcontrollers