Commit 8dff7450 authored by dracir's avatar dracir

Add ESP32-S2 support

parent db15796b
...@@ -153,6 +153,7 @@ menu "TFT_eSPI" ...@@ -153,6 +153,7 @@ menu "TFT_eSPI"
config TFT_PARALLEL_8_BIT config TFT_PARALLEL_8_BIT
bool "Enable 8-bit parallel mode (otherwise SPI is assumed)" bool "Enable 8-bit parallel mode (otherwise SPI is assumed)"
default "n" default "n"
depends on IDF_TARGET_ESP32
help help
Use 8-bit parallel bus to send data to the LCD. If not set SPI will be used. Use 8-bit parallel bus to send data to the LCD. If not set SPI will be used.
...@@ -214,7 +215,8 @@ menu "TFT_eSPI" ...@@ -214,7 +215,8 @@ menu "TFT_eSPI"
config TFT_MISO config TFT_MISO
int "TFT MISO pin" int "TFT MISO pin"
default -1 default -1
range -1 32 range -1 32 if IDF_TARGET_ESP32
range -1 45 if IDF_TARGET_ESP32S2
help help
Master In Slave Out pin. Master In Slave Out pin.
Can be labelled as SDO in some displays Can be labelled as SDO in some displays
...@@ -222,7 +224,8 @@ menu "TFT_eSPI" ...@@ -222,7 +224,8 @@ menu "TFT_eSPI"
config TFT_MOSI config TFT_MOSI
int "TFT MOSI pin" int "TFT MOSI pin"
default -1 default -1
range -1 32 range -1 32 if IDF_TARGET_ESP32
range -1 45 if IDF_TARGET_ESP32S2
help help
Master Out Slave In pin. Master Out Slave In pin.
Can be labelled as SDA or SDI in some displays Can be labelled as SDA or SDI in some displays
...@@ -230,7 +233,8 @@ menu "TFT_eSPI" ...@@ -230,7 +233,8 @@ menu "TFT_eSPI"
config TFT_SCLK config TFT_SCLK
int "TFT Clock pin" int "TFT Clock pin"
default -1 default -1
range -1 32 range -1 32 if IDF_TARGET_ESP32
range -1 45 if IDF_TARGET_ESP32S2
help help
Labelled in some displays as WR Labelled in some displays as WR
...@@ -266,7 +270,8 @@ menu "TFT_eSPI" ...@@ -266,7 +270,8 @@ menu "TFT_eSPI"
config TFT_CS config TFT_CS
int "TFT Chip Select pin" int "TFT Chip Select pin"
default -1 default -1
range -1 33 range -1 33 if IDF_TARGET_ESP32
range -1 45 if IDF_TARGET_ESP32S2
config TFT_DC config TFT_DC
int "TFT Data/Command pin" int "TFT Data/Command pin"
...@@ -278,7 +283,8 @@ menu "TFT_eSPI" ...@@ -278,7 +283,8 @@ menu "TFT_eSPI"
config TFT_RST config TFT_RST
int "TFT Reset pin" int "TFT Reset pin"
default -1 default -1
range -1 33 range -1 33 if IDF_TARGET_ESP32
range -1 45 if IDF_TARGET_ESP32S2
config ENABLE_BL config ENABLE_BL
bool "Enable backlight control" bool "Enable backlight control"
...@@ -288,7 +294,8 @@ menu "TFT_eSPI" ...@@ -288,7 +294,8 @@ menu "TFT_eSPI"
config TFT_BL config TFT_BL
int "TFT Backlight pin" int "TFT Backlight pin"
default -1 default -1
range -1 33 range -1 33 if IDF_TARGET_ESP32
range -1 45 if IDF_TARGET_ESP32S2
help help
Pin for the backlight control signal Pin for the backlight control signal
...@@ -355,7 +362,8 @@ menu "TFT_eSPI" ...@@ -355,7 +362,8 @@ menu "TFT_eSPI"
config TOUCH_CS config TOUCH_CS
int "Touch chip select pin" int "Touch chip select pin"
default -1 default -1
range -1 33 range -1 33 if IDF_TARGET_ESP32
range -1 45 if IDF_TARGET_ESP32S2
config SPI_TOUCH_FREQUENCY config SPI_TOUCH_FREQUENCY
int "SPI frequency for XPT2046 chip (Hz)" int "SPI frequency for XPT2046 chip (Hz)"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment