mirror of
https://github.com/nopnop2002/esp-idf-mpr121.git
synced 2025-12-18 02:14:31 +03:00
Added support for ESP32C2
This commit is contained in:
@@ -4,8 +4,9 @@ menu "MPR121 Configuration"
|
||||
int
|
||||
default 33 if IDF_TARGET_ESP32
|
||||
default 46 if IDF_TARGET_ESP32S2
|
||||
default 19 if IDF_TARGET_ESP32C3
|
||||
default 48 if IDF_TARGET_ESP32S3
|
||||
default 18 if IDF_TARGET_ESP32C2
|
||||
default 19 if IDF_TARGET_ESP32C3
|
||||
|
||||
config I2C_ADDRESS
|
||||
hex "I2C address"
|
||||
@@ -16,8 +17,8 @@ menu "MPR121 Configuration"
|
||||
config SCL_GPIO
|
||||
int "SCL GPIO number"
|
||||
range 0 GPIO_RANGE_MAX
|
||||
default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H2
|
||||
default 16 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||
default 4
|
||||
help
|
||||
GPIO number (IOxx) to SCL.
|
||||
@@ -26,8 +27,8 @@ menu "MPR121 Configuration"
|
||||
config SDA_GPIO
|
||||
int "SDA GPIO number"
|
||||
range 0 GPIO_RANGE_MAX
|
||||
default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H2
|
||||
default 17 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||
default 5
|
||||
help
|
||||
GPIO number (IOxx) to SDA.
|
||||
@@ -36,8 +37,8 @@ menu "MPR121 Configuration"
|
||||
config IRQ_GPIO
|
||||
int "IRQ GPIO number"
|
||||
range 0 GPIO_RANGE_MAX
|
||||
default 8 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H2
|
||||
default 18 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
default 8 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||
default 15
|
||||
help
|
||||
GPIO number (IOxx) to IRQ.
|
||||
|
||||
Reference in New Issue
Block a user