mirror of
https://github.com/nopnop2002/esp-idf-mpr121.git
synced 2025-12-18 02:14:31 +03:00
Changed default GPIO
This commit is contained in:
@@ -7,6 +7,7 @@ menu "MPR121 Configuration"
|
||||
default 48 if IDF_TARGET_ESP32S3
|
||||
default 18 if IDF_TARGET_ESP32C2
|
||||
default 19 if IDF_TARGET_ESP32C3
|
||||
default 30 if IDF_TARGET_ESP32C6
|
||||
|
||||
config I2C_ADDRESS
|
||||
hex "I2C address"
|
||||
@@ -17,9 +18,9 @@ menu "MPR121 Configuration"
|
||||
config SCL_GPIO
|
||||
int "SCL GPIO number"
|
||||
range 0 GPIO_RANGE_MAX
|
||||
default 16 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||
default 4
|
||||
default 22 if IDF_TARGET_ESP32
|
||||
default 12 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
default 6 # C3 and others
|
||||
help
|
||||
GPIO number (IOxx) to SCL.
|
||||
Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used to blink.
|
||||
@@ -27,9 +28,9 @@ menu "MPR121 Configuration"
|
||||
config SDA_GPIO
|
||||
int "SDA GPIO number"
|
||||
range 0 GPIO_RANGE_MAX
|
||||
default 17 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||
default 5
|
||||
default 21 if IDF_TARGET_ESP32
|
||||
default 11 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
default 5 # C3 and others
|
||||
help
|
||||
GPIO number (IOxx) to SDA.
|
||||
Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used to blink.
|
||||
@@ -37,9 +38,9 @@ menu "MPR121 Configuration"
|
||||
config IRQ_GPIO
|
||||
int "IRQ GPIO number"
|
||||
range 0 GPIO_RANGE_MAX
|
||||
default 15 if IDF_TARGET_ESP32
|
||||
default 18 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
default 8 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||
default 15
|
||||
default 4 # C3 and others
|
||||
help
|
||||
GPIO number (IOxx) to IRQ.
|
||||
Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used to blink.
|
||||
|
||||
Reference in New Issue
Block a user