touch: Handle ESP32S2 idf target
This commit is contained in:
parent
4c60f5fc4f
commit
d8ff17a7c7
|
@ -96,7 +96,9 @@ menu "LVGL Touch controller"
|
||||||
config LV_TOUCH_SPI_MISO
|
config LV_TOUCH_SPI_MISO
|
||||||
int
|
int
|
||||||
prompt "GPIO for MISO (Master In Slave Out)"
|
prompt "GPIO for MISO (Master In Slave Out)"
|
||||||
range 0 39
|
range 0 39 if IDF_TARGET_ESP32
|
||||||
|
range 0 43 if IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
default 35 if LV_PREDEFINED_PINS_38V1
|
default 35 if LV_PREDEFINED_PINS_38V1
|
||||||
default 19
|
default 19
|
||||||
help
|
help
|
||||||
|
@ -105,7 +107,9 @@ menu "LVGL Touch controller"
|
||||||
config LV_TOUCH_SPI_MOSI
|
config LV_TOUCH_SPI_MOSI
|
||||||
int
|
int
|
||||||
prompt "GPIO for MOSI (Master Out Slave In)"
|
prompt "GPIO for MOSI (Master Out Slave In)"
|
||||||
range 0 39
|
range 0 39 if IDF_TARGET_ESP32
|
||||||
|
range 0 43 if IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
default 32 if LV_PREDEFINED_PINS_38V1
|
default 32 if LV_PREDEFINED_PINS_38V1
|
||||||
default 23
|
default 23
|
||||||
help
|
help
|
||||||
|
@ -113,7 +117,9 @@ menu "LVGL Touch controller"
|
||||||
|
|
||||||
config LV_TOUCH_SPI_CLK
|
config LV_TOUCH_SPI_CLK
|
||||||
int "GPIO for CLK (SCK / Serial Clock)"
|
int "GPIO for CLK (SCK / Serial Clock)"
|
||||||
range 0 39
|
range 0 39 if IDF_TARGET_ESP32
|
||||||
|
range 0 43 if IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
default 26 if LV_PREDEFINED_PINS_38V1
|
default 26 if LV_PREDEFINED_PINS_38V1
|
||||||
default 18
|
default 18
|
||||||
help
|
help
|
||||||
|
@ -121,7 +127,9 @@ menu "LVGL Touch controller"
|
||||||
|
|
||||||
config LV_TOUCH_SPI_CS
|
config LV_TOUCH_SPI_CS
|
||||||
int "GPIO for CS (Slave Select)"
|
int "GPIO for CS (Slave Select)"
|
||||||
range 0 39
|
range 0 39 if IDF_TARGET_ESP32
|
||||||
|
range 0 43 if IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
default 33 if LV_PREDEFINED_PINS_38V1
|
default 33 if LV_PREDEFINED_PINS_38V1
|
||||||
default 5
|
default 5
|
||||||
help
|
help
|
||||||
|
@ -129,7 +137,9 @@ menu "LVGL Touch controller"
|
||||||
|
|
||||||
config LV_TOUCH_PIN_IRQ
|
config LV_TOUCH_PIN_IRQ
|
||||||
int "GPIO for IRQ (Interrupt Request)"
|
int "GPIO for IRQ (Interrupt Request)"
|
||||||
range 0 39
|
range 0 39 if IDF_TARGET_ESP32
|
||||||
|
range 0 43 if IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
default 27 if LV_PREDEFINED_PINS_38V4
|
default 27 if LV_PREDEFINED_PINS_38V4
|
||||||
default 25
|
default 25
|
||||||
help
|
help
|
||||||
|
@ -199,14 +209,18 @@ menu "LVGL Touch controller"
|
||||||
config LV_TOUCH_I2C_SDA
|
config LV_TOUCH_I2C_SDA
|
||||||
int
|
int
|
||||||
prompt "GPIO for SDA (I2C)"
|
prompt "GPIO for SDA (I2C)"
|
||||||
range 0 39
|
range 0 39 if IDF_TARGET_ESP32
|
||||||
|
range 0 43 if IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
default 21
|
default 21
|
||||||
help
|
help
|
||||||
Configure the I2C touchpanel SDA pin here.
|
Configure the I2C touchpanel SDA pin here.
|
||||||
|
|
||||||
config LV_TOUCH_I2C_SCL
|
config LV_TOUCH_I2C_SCL
|
||||||
int "GPIO for clock signal SCL (I2C)"
|
int "GPIO for clock signal SCL (I2C)"
|
||||||
range 0 39
|
range 0 39 if IDF_TARGET_ESP32
|
||||||
|
range 0 43 if IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
default 22
|
default 22
|
||||||
help
|
help
|
||||||
Configure the I2C touchpanel SCL pin here.
|
Configure the I2C touchpanel SCL pin here.
|
||||||
|
@ -238,7 +252,9 @@ menu "LVGL Touch controller"
|
||||||
config LV_TOUCH_SPI_MISO
|
config LV_TOUCH_SPI_MISO
|
||||||
int
|
int
|
||||||
prompt "GPIO for MISO (Master In Slave Out)"
|
prompt "GPIO for MISO (Master In Slave Out)"
|
||||||
range 0 39
|
range 0 39 if IDF_TARGET_ESP32
|
||||||
|
range 0 43 if IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
default 35 if LV_PREDEFINED_PINS_38V1
|
default 35 if LV_PREDEFINED_PINS_38V1
|
||||||
default 19 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
|
default 19 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
|
||||||
default 19
|
default 19
|
||||||
|
@ -249,7 +265,9 @@ menu "LVGL Touch controller"
|
||||||
config LV_TOUCH_SPI_MOSI
|
config LV_TOUCH_SPI_MOSI
|
||||||
int
|
int
|
||||||
prompt "GPIO for MOSI (Master Out Slave In)"
|
prompt "GPIO for MOSI (Master Out Slave In)"
|
||||||
range 0 39
|
range 0 39 if IDF_TARGET_ESP32
|
||||||
|
range 0 43 if IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
default 32 if LV_PREDEFINED_PINS_38V1
|
default 32 if LV_PREDEFINED_PINS_38V1
|
||||||
default 18 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
|
default 18 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
|
||||||
default 23
|
default 23
|
||||||
|
@ -259,7 +277,9 @@ menu "LVGL Touch controller"
|
||||||
|
|
||||||
config LV_TOUCH_SPI_CLK
|
config LV_TOUCH_SPI_CLK
|
||||||
int "GPIO for CLK (SCK / Serial Clock)"
|
int "GPIO for CLK (SCK / Serial Clock)"
|
||||||
range 0 39
|
range 0 39 if IDF_TARGET_ESP32
|
||||||
|
range 0 43 if IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
default 26 if LV_PREDEFINED_PINS_38V1
|
default 26 if LV_PREDEFINED_PINS_38V1
|
||||||
default 5 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
|
default 5 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
|
||||||
default 18
|
default 18
|
||||||
|
@ -268,7 +288,9 @@ menu "LVGL Touch controller"
|
||||||
|
|
||||||
config LV_TOUCH_SPI_CS
|
config LV_TOUCH_SPI_CS
|
||||||
int "GPIO for CS (Slave Select)"
|
int "GPIO for CS (Slave Select)"
|
||||||
range 0 39
|
range 0 39 if IDF_TARGET_ESP32
|
||||||
|
range 0 43 if IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
default 33 if LV_PREDEFINED_PINS_38V1
|
default 33 if LV_PREDEFINED_PINS_38V1
|
||||||
default 32 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
|
default 32 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
|
||||||
default 5
|
default 5
|
||||||
|
|
Loading…
Reference in a new issue