2021-12-28 11:04:06 +09:00
2021-12-28 09:45:06 +09:00
2021-12-28 09:45:06 +09:00
2021-12-28 09:34:12 +09:00
2021-12-28 11:04:06 +09:00

esp-idf-mpr121

MPR121 Capacitive Touch Driver for esp-idf.

I ported from here.

Hardware requirements

MPR121 Capacitive Touch switch.

mpr121-1

Software requirements

esp-idf v4.4 or later.
This is because this version supports ESP32-C3.

Installation for ESP32

git clone https://github.com/nopnop2002/esp-idf-mpr121
cd esp-idf-mpr121
idf.py set-target esp32
idf.py menuconfig
idf.py flash

Installation for ESP32-S2

git clone https://github.com/nopnop2002/esp-idf-mpr121
cd esp-idf-mpr121
idf.py set-target esp32s2
idf.py menuconfig
idf.py flash

Installation for ESP32-C3

git clone https://github.com/nopnop2002/esp-idf-mpr121
cd esp-idf-mpr121
idf.py set-target esp32c3
idf.py menuconfig
idf.py flash

Configuration

config-top

config-mpr121

Wirering

MPR121 ESP32 ESP32-S2 ESP32-C3
SCL -- GPIO4 GPIO16 GPIO6
SDA -- GPIO5 GPIO17 GPIO7
IRQ -- GPIO15 GPIO18 GPIO8
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

Description
Languages
C 98.8%
CMake 1.1%
Makefile 0.1%