https://github.com/nopnop2002/esp-idf-ttp229
TTP229 Capacitive Touch Driver for esp-idf
https://github.com/nopnop2002/esp-idf-ttp229
capacitive-touch-sensor esp-idf esp32 ttp229
Last synced: about 2 months ago
JSON representation
TTP229 Capacitive Touch Driver for esp-idf
- Host: GitHub
- URL: https://github.com/nopnop2002/esp-idf-ttp229
- Owner: nopnop2002
- License: mit
- Created: 2021-12-26T02:09:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-26T22:51:44.000Z (over 2 years ago)
- Last Synced: 2025-02-14T06:25:59.359Z (over 1 year ago)
- Topics: capacitive-touch-sensor, esp-idf, esp32, ttp229
- Language: C
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp-idf-ttp229
TTP229 Capacitive Touch Driver for esp-idf.
I ported from [here](https://github.com/arduino12/ttp229b-arduino).
# 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.

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

# Installation
```Shell
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


# Wiring
|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

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