mirror of
https://github.com/nopnop2002/esp-idf-mpr121.git
synced 2025-12-16 17:34:31 +03:00
65 lines
1.6 KiB
Plaintext
65 lines
1.6 KiB
Plaintext
menu "MPR121 Configuration"
|
|
|
|
config GPIO_RANGE_MAX
|
|
int
|
|
default 33 if IDF_TARGET_ESP32
|
|
default 46 if IDF_TARGET_ESP32S2
|
|
default 48 if IDF_TARGET_ESP32S3
|
|
default 18 if IDF_TARGET_ESP32C2
|
|
default 19 if IDF_TARGET_ESP32C3
|
|
default 30 if IDF_TARGET_ESP32C6
|
|
|
|
choice I2C_PORT
|
|
prompt "I2C port that controls this bus"
|
|
default I2C_PORT_0
|
|
help
|
|
Select I2C port that controls this bus.
|
|
config I2C_PORT_0
|
|
bool "I2C_PORT_0"
|
|
help
|
|
Use I2C_PORT_0.
|
|
config I2C_PORT_1
|
|
depends on IDF_TARGET_ARCH_XTENSA
|
|
bool "I2C_PORT_1"
|
|
help
|
|
Use I2C_PORT_1.
|
|
endchoice
|
|
|
|
config I2C_ADDRESS
|
|
hex "I2C address"
|
|
default 0x5A
|
|
help
|
|
I2C address.
|
|
|
|
config SCL_GPIO
|
|
int "SCL GPIO number"
|
|
range 0 GPIO_RANGE_MAX
|
|
default 19 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.
|
|
|
|
config SDA_GPIO
|
|
int "SDA GPIO number"
|
|
range 0 GPIO_RANGE_MAX
|
|
default 18 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.
|
|
|
|
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 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.
|
|
|
|
endmenu
|