mirror of
https://github.com/nopnop2002/esp-idf-mpr121.git
synced 2025-12-16 17:34:31 +03:00
Changed default GPIO for esp32s3
This commit is contained in:
@@ -32,7 +32,7 @@ idf.py flash
|
||||
|
||||
# Wirering
|
||||
|
||||
|MPR121||ESP32|ESP32-S2|ESP32-C3|
|
||||
|MPR121||ESP32|ESP32-S2/S3|ESP32-C3|
|
||||
|:-:|:-:|:-:|:-:|:-:|
|
||||
|SCL|--|GPIO4|GPIO16|GPIO6|
|
||||
|SDA|--|GPIO5|GPIO17|GPIO7|
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
menu "MPR121 Configuration"
|
||||
|
||||
config GPIO_RANGE_MAX
|
||||
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
|
||||
|
||||
config I2C_ADDRESS
|
||||
hex "I2C address"
|
||||
default 0x5A
|
||||
@@ -8,10 +15,9 @@ menu "MPR121 Configuration"
|
||||
|
||||
config SCL_GPIO
|
||||
int "SCL GPIO number"
|
||||
range 0 48
|
||||
range 0 GPIO_RANGE_MAX
|
||||
default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H2
|
||||
default 16 if IDF_TARGET_ESP32S2
|
||||
default 46 if IDF_TARGET_ESP32S3
|
||||
default 16 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
default 4
|
||||
help
|
||||
GPIO number (IOxx) to SCL.
|
||||
@@ -19,10 +25,9 @@ menu "MPR121 Configuration"
|
||||
|
||||
config SDA_GPIO
|
||||
int "SDA GPIO number"
|
||||
range 0 48
|
||||
range 0 GPIO_RANGE_MAX
|
||||
default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H2
|
||||
default 17 if IDF_TARGET_ESP32S2
|
||||
default 47 if IDF_TARGET_ESP32S3
|
||||
default 17 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
default 5
|
||||
help
|
||||
GPIO number (IOxx) to SDA.
|
||||
@@ -30,10 +35,9 @@ menu "MPR121 Configuration"
|
||||
|
||||
config IRQ_GPIO
|
||||
int "IRQ GPIO number"
|
||||
range 0 48
|
||||
range 0 GPIO_RANGE_MAX
|
||||
default 8 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H2
|
||||
default 18 if IDF_TARGET_ESP32S2
|
||||
default 48 if IDF_TARGET_ESP32S3
|
||||
default 18 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
default 15
|
||||
help
|
||||
GPIO number (IOxx) to IRQ.
|
||||
|
||||
Reference in New Issue
Block a user