Skip to content

nopnop2002/esp-idf-ttp229

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

esp-idf-ttp229

TTP229 Capacitive Touch Driver for esp-idf.

I ported from here.

Software requirements

ESP-IDF V4.4/V5.x.
ESP-IDF V5.0 is required when using ESP32-C2.
ESP-IDF V5.1 is required when using ESP32-C6.

Hardware requirements

TTP229 Capacitive Touch switch.

TTP229-1

In order to use 16key, it is necessary to short TTP229 TP2. TTP229-2

Installation

git clone https://github.com/nopnop2002/esp-idf-ttp229
cd esp-idf-ttp229
idf.py set-target {esp32/esp32s2/esp32s3/esp32c2/esp32c3/esp32c6}
idf.py menuconfig
idf.py flash

Configuration

config-top

config-ttp229

Wirering

TTP229 ESP32 ESP32-S2/S3 ESP32-C2/C3/C6
SCL -- GPIO4 GPIO17 GPIO0
SDA -- GPIO5 GPIO18 GPIO1
GND -- GND GND GND
VCC -- 3.3V 3.3V 3.3V

You can change it to any pin using menuconfig.

The markings on the board are SCL and SDA, but not the i2c interface.

Screen Shot

TTP229-3

Reference

https://github.com/nopnop2002/esp-idf-mpr121