TTP229 Capacitive Touch Driver for esp-idf.
I ported from here.
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.
TTP229 Capacitive Touch switch.
In order to use 16key, it is necessary to short TTP229 TP2.
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
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.