bakalarka/components/lvgl_esp32_drivers/lvgl_tft/Kconfig
2020-03-20 18:01:25 +01:00

199 lines
6.3 KiB
Plaintext

menu "LittlevGL (LVGL) TFT Display controller"
choice
prompt "Select predefined display configuration"
default LVGL_PREDEFINED_DISPLAY_NONE
help
Select predefined display configuration
config LVGL_PREDEFINED_DISPLAY_NONE
bool "None"
config LVGL_PREDEFINED_DISPLAY_WROVER4
bool "ESP-Wrover-KIT v4.1"
config LVGL_PREDEFINED_DISPLAY_M5STACK
bool "M5Stack"
config LVGL_PREDEFINED_DISPLAY_ERTFT0356
bool "ER-TFT035-6"
config LVGL_PREDEFINED_DISPLAY_ADA_FEATHERWING
bool "Adafruit 3.5 Featherwing"
endchoice
choice
prompt "Select predefined board pinouts" if LVGL_PREDEFINED_DISPLAY_NONE || LVGL_PREDEFINED_DISPLAY_ERTFT0356
default LVGL_PREDEFINED_PINS_NONE
help
Select predefined board pin out configuration.
config LVGL_PREDEFINED_PINS_NONE
bool "None"
config LVGL_PREDEFINED_PINS_38V4
bool "ESP32 DevKit v4 (38 GPIOS)"
config LVGL_PREDEFINED_PINS_30
bool "ESP32 Devkit v1 - 30 pins"
config LVGL_PREDEFINED_PINS_38V1
bool "Dev Board with 38 pins"
endchoice
config LVGL_TFT_DISPLAY_CONTROLLER
int
default 0 if LVGL_TFT_DISPLAY_CONTROLLER_ILI9341
default 1 if LVGL_TFT_DISPLAY_CONTROLLER_ILI9488 || LVGL_PREDEFINED_DISPLAY_ERTFT0356
default 2 if LVGL_TFT_DISPLAY_CONTROLLER_ST7789
default 3 if LVGL_TFT_DISPLAY_CONTROLLER_HX8357
choice
prompt "Select a display controller model." if LVGL_PREDEFINED_DISPLAY_NONE
default LVGL_TFT_DISPLAY_CONTROLLER_ILI9341
default LVGL_TFT_DISPLAY_CONTROLLER_ILI9341 if LVGL_PREDEFINED_DISPLAY_WROVER4
default LVGL_TFT_DISPLAY_CONTROLLER_ILI9341 if LVGL_PREDEFINED_DISPLAY_M5STACK
default LVGL_TFT_DISPLAY_CONTROLLER_ILI9488 if LVGL_PREDEFINED_DISPLAY_ERTFT0356
default LVGL_TFT_DISPLAY_CONTROLLER_HX8357 if LVGL_PREDEFINED_DISPLAY_ADA_FEATHERWING
help
Select the controller for your display.
config LVGL_TFT_DISPLAY_CONTROLLER_ILI9341
bool "ILI9341"
config LVGL_TFT_DISPLAY_CONTROLLER_ILI9488
bool "ILI9488"
config LVGL_TFT_DISPLAY_CONTROLLER_ST7789
bool "ST7789"
config LVGL_TFT_DISPLAY_CONTROLLER_HX8357
bool "HX8357"
endchoice
choice
prompt "TFT SPI Bus."
default LVGL_TFT_DISPLAY_SPI_HSPI
help
Select the SPI Bus the TFT Display is attached to.
config LVGL_TFT_DISPLAY_SPI_HSPI
bool "HSPI"
config LVGL_TFT_DISPLAY_SPI_VSPI
bool "VSPI"
endchoice
config LVGL_DISPLAY_WIDTH
int
prompt "TFT display width in pixels." if LVGL_PREDEFINED_DISPLAY_NONE
default 240 if LVGL_PREDEFINED_DISPLAY_M5STACK
default 480 if LVGL_PREDEFINED_DISPLAY_ERTFT0356 || LVGL_PREDEFINED_DISPLAY_ADA_FEATHERWING
default 320
config LVGL_DISPLAY_HEIGHT
int
prompt "TFT display height in pixels." if LVGL_PREDEFINED_DISPLAY_NONE
default 320 if LVGL_PREDEFINED_DISPLAY_M5STACK || LVGL_PREDEFINED_DISPLAY_ERTFT0356 || LVGL_PREDEFINED_DISPLAY_ADA_FEATHERWING
default 240
config LVGL_INVERT_DISPLAY
bool
prompt "Invert display." if LVGL_PREDEFINED_DISPLAY_NONE
default y if LVGL_PREDEFINED_DISPLAY_M5STACK
default n
help
If text is backwards on your display, try enabling this.
config LVGL_ENABLE_BACKLIGHT_CONTROL
bool
prompt "Enable control of the display backlight by using an GPIO."
default y if LVGL_PREDEFINED_DISPLAY_M5STACK || LVGL_PREDEFINED_DISPLAY_WROVER4 || LVGL_PREDEFINED_DISPLAY_ERTFT0356
default n
help
Enable controlling the display backlight using an GPIO
config LVGL_BACKLIGHT_ACTIVE_LVL
bool
prompt "Is backlight turn on with a HIGH (1) logic level?" if LVGL_ENABLE_BACKLIGHT_CONTROL
default y if LVGL_PREDEFINED_DISPLAY_M5STACK || LVGL_PREDEFINED_DISPLAY_ERTFT0356
default n if LVGL_PREDEFINED_DISPLAY_WROVER4
default n
help
Some backlights are turned on with a high signal, others held low.
If enabled, a value of 1 will be sent to the display to enable the backlight,
otherwise a 0 will be expected to enable it.
menu "Display Pin Assignments"
config LVGL_DISP_SPI_MOSI
int
prompt "GPIO for MOSI (Master Out Slave In)"
range 0 39
default 23 if LVGL_PREDEFINED_DISPLAY_WROVER4
default 23 if LVGL_PREDEFINED_DISPLAY_M5STACK
default 18 if LVGL_PREDEFINED_DISPLAY_ADA_FEATHERWING
default 13
help
Configure the display MOSI pin here.
config LVGL_DISP_SPI_CLK
int
prompt "GPIO for CLK (SCK / Serial Clock)"
range 0 39
default 18 if LVGL_PREDEFINED_DISPLAY_M5STACK
default 19 if LVGL_PREDEFINED_DISPLAY_WROVER4
default 5 if LVGL_PREDEFINED_DISPLAY_ADA_FEATHERWING
default 14
help
Configure the display CLK pin here.
config LVGL_DISP_SPI_CS
int
prompt "GPIO for CS (Slave Select)"
range 0 39
default 5 if LVGL_PREDEFINED_PINS_38V1
default 14 if LVGL_PREDEFINED_DISPLAY_M5STACK
default 22 if LVGL_PREDEFINED_DISPLAY_WROVER4
default 15 if LVGL_PREDEFINED_DISPLAY_ADA_FEATHERWING
default 15
help
Configure the display CS pin here.
config LVGL_DISP_PIN_DC
int
prompt "GPIO for DC (Data / Command)"
range 0 39
default 19 if LVGL_PREDEFINED_PINS_38V1
default 17 if LVGL_PREDEFINED_PINS_38V4
default 27 if LVGL_PREDEFINED_DISPLAY_M5STACK
default 21 if LVGL_PREDEFINED_DISPLAY_WROVER4
default 33 if LVGL_PREDEFINED_DISPLAY_ADA_FEATHERWING
default 2
help
Configure the display DC pin here.
config LVGL_DISP_PIN_RST
int
prompt "GPIO for Reset"
range 0 39
default 18 if LVGL_PREDEFINED_PINS_38V1
default 25 if LVGL_PREDEFINED_PINS_38V4
default 33 if LVGL_PREDEFINED_DISPLAY_M5STACK
default 18 if LVGL_PREDEFINED_DISPLAY_WROVER4
default 4 if LVGL_PREDEFINED_DISPLAY_ADA_FEATHERWING
default 4
help
Configure the display Reset pin here.
config LVGL_DISP_PIN_BCKL
int
prompt "GPIO for Backlight Control"
range 0 39
default 23 if LVGL_PREDEFINED_PINS_38V1
default 26 if LVGL_PREDEFINED_PINS_38V4
default 32 if LVGL_PREDEFINED_DISPLAY_M5STACK
default 5 if LVGL_PREDEFINED_DISPLAY_WROVER4
default 2 if LVGL_PREDEFINED_DISPLAY_ADA_FEATHERWING
default 21
help
Configure the display BCLK (LED) pin here.
endmenu
endmenu