Skip to content

nopnop2002/esp-idf-mpr121

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

esp-idf-mpr121

MPR121 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

MPR121 Capacitive Touch switch.

mpr121-1

Installation

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

Configuration

config-top

config-mpr121

Wirering

MPR121 ESP32 ESP32-S2/S3 ESP32-C2/C3/C6
SCL -- GPIO22 GPIO12 GPIO6
SDA -- GPIO21 GPIO11 GPIO5
IRQ -- GPIO15 GPIO18 GPIO4
GND -- GND GND GND
VCC -- 3.3V 3.3V 3.3V

You can change it to any pin using menuconfig.

Screen Shot

mpr121-2

Reference

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

Releases

No releases published

Packages

No packages published

Languages