nopnop2002 / esp-idf-ttp229

TTP229 Capacitive Touch Driver for esp-idf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

TTP229 Capacitive Touch Driver for esp-idf

License:MIT License


Languages

Language:C 97.4%Language:CMake 2.1%Language:Makefile 0.5%