2020-12-17 06:02:55 +00:00
|
|
|
menu "LVGL Touch controller"
|
|
|
|
|
|
|
|
config LV_TOUCH_CONTROLLER
|
2021-12-18 17:54:50 +00:00
|
|
|
int
|
|
|
|
default 0 if LV_TOUCH_CONTROLLER_NONE
|
|
|
|
default 1 if LV_TOUCH_CONTROLLER_XPT2046
|
|
|
|
default 2 if LV_TOUCH_CONTROLLER_FT6X06
|
|
|
|
default 3 if LV_TOUCH_CONTROLLER_STMPE610
|
2020-12-17 06:02:55 +00:00
|
|
|
default 4 if LV_TOUCH_CONTROLLER_ADCRAW
|
|
|
|
default 5 if LV_TOUCH_CONTROLLER_FT81X
|
|
|
|
default 6 if LV_TOUCH_CONTROLLER_RA8875
|
2021-06-11 03:49:56 +00:00
|
|
|
default 7 if LV_TOUCH_CONTROLLER_GT911
|
2022-08-06 21:31:06 +00:00
|
|
|
default 8 if LV_TOUCH_CONTROLLER_CST816
|
2020-12-17 06:02:55 +00:00
|
|
|
|
|
|
|
choice
|
2021-12-18 17:54:50 +00:00
|
|
|
prompt "Select a touch panel controller model."
|
|
|
|
default LV_TOUCH_CONTROLLER_NONE
|
|
|
|
help
|
|
|
|
Select the controller for your touch panel.
|
|
|
|
|
|
|
|
config LV_TOUCH_CONTROLLER_NONE
|
|
|
|
bool "None"
|
|
|
|
config LV_TOUCH_CONTROLLER_XPT2046
|
2020-12-17 06:02:55 +00:00
|
|
|
select LV_TOUCH_DRIVER_PROTOCOL_SPI
|
|
|
|
bool "XPT2046"
|
2021-12-18 17:54:50 +00:00
|
|
|
config LV_TOUCH_CONTROLLER_FT6X06
|
2021-07-08 09:04:07 +00:00
|
|
|
select LV_I2C_TOUCH
|
2020-12-17 06:02:55 +00:00
|
|
|
bool "FT6X06"
|
|
|
|
config LV_TOUCH_CONTROLLER_STMPE610
|
|
|
|
select LV_TOUCH_DRIVER_PROTOCOL_SPI
|
|
|
|
bool "STMPE610"
|
|
|
|
config LV_TOUCH_CONTROLLER_ADCRAW
|
|
|
|
select LV_TOUCH_DRIVER_ADC
|
|
|
|
bool "ADCRAW"
|
|
|
|
config LV_TOUCH_CONTROLLER_FT81X
|
|
|
|
select LV_TOUCH_DRIVER_PROTOCOL_SPI
|
|
|
|
bool "FT81X"
|
|
|
|
config LV_TOUCH_CONTROLLER_RA8875
|
|
|
|
select LV_TOUCH_DRIVER_DISPLAY
|
|
|
|
bool "RA8875"
|
2021-06-11 03:49:56 +00:00
|
|
|
config LV_TOUCH_CONTROLLER_GT911
|
2021-07-08 09:04:07 +00:00
|
|
|
select LV_I2C_TOUCH
|
2021-06-11 03:49:56 +00:00
|
|
|
bool "GT911"
|
2022-08-06 21:31:06 +00:00
|
|
|
config LV_TOUCH_CONTROLLER_CST816
|
|
|
|
select LV_I2C_TOUCH
|
|
|
|
bool "CST816"
|
2020-12-17 06:02:55 +00:00
|
|
|
endchoice
|
2021-07-08 09:04:07 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
config LV_TOUCH_DRIVER_PROTOCOL_SPI
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Touch controller protocol SPI
|
|
|
|
|
2021-07-08 09:04:07 +00:00
|
|
|
config LV_I2C_TOUCH
|
2020-12-17 06:02:55 +00:00
|
|
|
bool
|
|
|
|
help
|
|
|
|
Touch controller protocol I2C
|
|
|
|
|
|
|
|
config LV_TOUCH_DRIVER_ADC
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Touch controller via ADC
|
|
|
|
|
|
|
|
config LV_TOUCH_DRIVER_DISPLAY
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Touch controller uses same interface/device as display
|
2021-12-18 17:54:50 +00:00
|
|
|
(Note: Display must be initialized before touch)
|
2020-12-17 06:02:55 +00:00
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Touch Controller SPI Bus."
|
|
|
|
depends on LV_TOUCH_DRIVER_PROTOCOL_SPI
|
2021-07-08 09:04:07 +00:00
|
|
|
|
2021-12-18 17:54:50 +00:00
|
|
|
default LV_TOUCH_CONTROLLER_SPI2_HOST
|
2020-12-17 06:02:55 +00:00
|
|
|
help
|
2021-12-18 17:54:50 +00:00
|
|
|
Select the SPI Bus the touch controller is attached to.
|
|
|
|
|
|
|
|
config LV_TOUCH_CONTROLLER_SPI2_HOST
|
|
|
|
bool "SPI2_HOST"
|
|
|
|
config LV_TOUCH_CONTROLLER_SPI3_HOST
|
|
|
|
bool "SPI3_HOST"
|
2020-12-17 06:02:55 +00:00
|
|
|
endchoice
|
2021-07-08 09:04:07 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
menu "Touchpanel (XPT2046) Pin Assignments"
|
|
|
|
depends on LV_TOUCH_CONTROLLER_XPT2046
|
|
|
|
|
|
|
|
config LV_TOUCH_SPI_MISO
|
|
|
|
int
|
|
|
|
prompt "GPIO for MISO (Master In Slave Out)"
|
2021-12-18 17:54:50 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
default 35 if LV_PREDEFINED_PINS_38V1
|
|
|
|
default 19
|
|
|
|
help
|
|
|
|
Configure the touchpanel MISO pin here.
|
|
|
|
|
|
|
|
config LV_TOUCH_SPI_MOSI
|
|
|
|
int
|
|
|
|
prompt "GPIO for MOSI (Master Out Slave In)"
|
2021-02-04 06:22:03 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
default 32 if LV_PREDEFINED_PINS_38V1
|
|
|
|
default 23
|
|
|
|
help
|
|
|
|
Configure the touchpanel MOSI pin here.
|
|
|
|
|
|
|
|
config LV_TOUCH_SPI_CLK
|
|
|
|
int "GPIO for CLK (SCK / Serial Clock)"
|
2021-12-18 17:54:50 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
default 26 if LV_PREDEFINED_PINS_38V1
|
|
|
|
default 18
|
|
|
|
help
|
|
|
|
Configure the touchpanel CLK pin here.
|
|
|
|
|
|
|
|
config LV_TOUCH_SPI_CS
|
|
|
|
int "GPIO for CS (Slave Select)"
|
2021-07-08 09:04:07 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
default 33 if LV_PREDEFINED_PINS_38V1
|
|
|
|
default 5
|
|
|
|
help
|
|
|
|
Configure the touchpanel CS pin here.
|
|
|
|
|
|
|
|
config LV_TOUCH_PIN_IRQ
|
|
|
|
int "GPIO for IRQ (Interrupt Request)"
|
2021-12-18 17:54:50 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
default 27 if LV_PREDEFINED_PINS_38V4
|
|
|
|
default 25
|
|
|
|
help
|
2020-12-25 20:42:01 +00:00
|
|
|
Configure the touchpanel IRQ pin here.
|
2020-12-17 06:02:55 +00:00
|
|
|
endmenu
|
2021-07-08 09:04:07 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
menu "Touchpanel Configuration (XPT2046)"
|
|
|
|
depends on LV_TOUCH_CONTROLLER_XPT2046
|
|
|
|
|
|
|
|
config LV_TOUCH_X_MIN
|
|
|
|
int
|
|
|
|
prompt "Minimum X coordinate value."
|
|
|
|
default 0 if LV_PREDEFINED_PINS_38V4
|
|
|
|
default 200
|
|
|
|
|
|
|
|
config LV_TOUCH_Y_MIN
|
|
|
|
int
|
|
|
|
prompt "Minimum Y coordinate value."
|
|
|
|
default 0 if LV_PREDEFINED_PINS_38V4
|
|
|
|
default 120
|
|
|
|
|
|
|
|
config LV_TOUCH_X_MAX
|
|
|
|
int
|
|
|
|
prompt "Maximum X coordinate value."
|
|
|
|
default 4095 if LV_PREDEFINED_PINS_38V4
|
|
|
|
default 1900
|
|
|
|
|
|
|
|
config LV_TOUCH_Y_MAX
|
|
|
|
int
|
|
|
|
prompt "Maximum Y coordinate value."
|
|
|
|
default 4095 if LV_PREDEFINED_PINS_38V4
|
|
|
|
default 1900
|
2021-07-08 09:04:07 +00:00
|
|
|
|
2021-12-18 17:54:50 +00:00
|
|
|
config LV_TOUCH_XY_SWAP
|
|
|
|
bool
|
|
|
|
prompt "Swap XY."
|
|
|
|
default y
|
2020-12-17 06:02:55 +00:00
|
|
|
|
|
|
|
config LV_TOUCH_INVERT_X
|
|
|
|
bool
|
|
|
|
prompt "Invert X coordinate value."
|
|
|
|
default y
|
|
|
|
|
|
|
|
config LV_TOUCH_INVERT_Y
|
|
|
|
bool
|
|
|
|
prompt "Invert Y coordinate value."
|
|
|
|
default y
|
|
|
|
|
2020-12-29 22:40:03 +00:00
|
|
|
choice
|
|
|
|
prompt "Select touch detection method."
|
|
|
|
default LV_TOUCH_DETECT_IRQ
|
|
|
|
help
|
|
|
|
Select the controller for your touch panel.
|
|
|
|
|
|
|
|
config LV_TOUCH_DETECT_IRQ
|
|
|
|
bool "IRQ pin only"
|
|
|
|
config LV_TOUCH_DETECT_IRQ_PRESSURE
|
|
|
|
bool "IRQ pin and pressure"
|
|
|
|
config LV_TOUCH_DETECT_PRESSURE
|
|
|
|
bool "Pressure only"
|
|
|
|
endchoice
|
2020-12-17 06:02:55 +00:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Touchpanel Configuration (FT6X06)"
|
|
|
|
depends on LV_TOUCH_CONTROLLER_FT6X06
|
|
|
|
|
2021-07-07 18:40:15 +00:00
|
|
|
config LV_FT6X36_SWAPXY
|
|
|
|
bool
|
|
|
|
prompt "Swap X with Y coordinate."
|
|
|
|
default n
|
2020-12-17 06:02:55 +00:00
|
|
|
|
|
|
|
config LV_FT6X36_INVERT_X
|
|
|
|
bool
|
|
|
|
prompt "Invert X coordinate value."
|
|
|
|
default n
|
|
|
|
|
2021-07-08 09:04:07 +00:00
|
|
|
config LV_FT6X36_INVERT_Y
|
|
|
|
bool
|
|
|
|
prompt "Invert Y coordinate value."
|
|
|
|
default n
|
2020-12-17 06:02:55 +00:00
|
|
|
|
2021-10-25 18:53:26 +00:00
|
|
|
config LV_FT6X36_COORDINATES_QUEUE
|
|
|
|
bool
|
|
|
|
prompt "Send coordinates to FreeRTOS queue."
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Receive from the FreeRTOS queue using the handle 'ft6x36_touch_queue_handle'.
|
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
endmenu
|
2021-07-08 09:04:07 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
menu "Touchpanel (STMPE610) Pin Assignments"
|
|
|
|
depends on LV_TOUCH_CONTROLLER_STMPE610
|
|
|
|
|
|
|
|
config LV_TOUCH_SPI_MISO
|
|
|
|
int
|
|
|
|
prompt "GPIO for MISO (Master In Slave Out)"
|
2021-12-18 17:54:50 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
default 35 if LV_PREDEFINED_PINS_38V1
|
|
|
|
default 19 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
|
|
|
|
default 19
|
|
|
|
|
|
|
|
help
|
|
|
|
Configure the touchpanel MISO pin here.
|
|
|
|
|
|
|
|
config LV_TOUCH_SPI_MOSI
|
2021-06-11 03:31:09 +00:00
|
|
|
# TODO Fix default for ESP32C3
|
2020-12-17 06:02:55 +00:00
|
|
|
int
|
|
|
|
prompt "GPIO for MOSI (Master Out Slave In)"
|
2021-02-04 06:22:03 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
default 32 if LV_PREDEFINED_PINS_38V1
|
|
|
|
default 18 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
|
|
|
|
default 23
|
|
|
|
|
|
|
|
help
|
|
|
|
Configure the touchpanel MOSI pin here.
|
|
|
|
|
|
|
|
config LV_TOUCH_SPI_CLK
|
|
|
|
int "GPIO for CLK (SCK / Serial Clock)"
|
2021-02-04 06:22:03 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
default 26 if LV_PREDEFINED_PINS_38V1
|
|
|
|
default 5 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
|
|
|
|
default 18
|
|
|
|
help
|
|
|
|
Configure the touchpanel CLK pin here.
|
|
|
|
|
|
|
|
config LV_TOUCH_SPI_CS
|
|
|
|
int "GPIO for CS (Slave Select)"
|
|
|
|
default 33 if LV_PREDEFINED_PINS_38V1
|
|
|
|
default 32 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
|
|
|
|
default 5
|
|
|
|
help
|
|
|
|
Configure the touchpanel CS pin here.
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Touchpanel Configuration (STMPE610)"
|
|
|
|
depends on LV_TOUCH_CONTROLLER_STMPE610
|
|
|
|
|
|
|
|
config LV_TOUCH_X_MIN
|
|
|
|
int
|
|
|
|
prompt "Minimum X coordinate value."
|
|
|
|
default 160
|
|
|
|
|
|
|
|
config LV_TOUCH_Y_MIN
|
|
|
|
int
|
|
|
|
prompt "Minimum Y coordinate value."
|
|
|
|
default 230
|
|
|
|
|
|
|
|
config LV_TOUCH_X_MAX
|
|
|
|
int
|
|
|
|
prompt "Maximum X coordinate value."
|
|
|
|
default 3800
|
|
|
|
|
|
|
|
config LV_TOUCH_Y_MAX
|
|
|
|
int
|
|
|
|
prompt "Maximum Y coordinate value."
|
|
|
|
default 3800
|
2021-07-08 09:04:07 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
config LV_TOUCH_XY_SWAP
|
2021-12-18 17:54:50 +00:00
|
|
|
bool
|
|
|
|
prompt "Swap XY."
|
|
|
|
default n
|
2020-12-17 06:02:55 +00:00
|
|
|
|
|
|
|
config LV_TOUCH_INVERT_X
|
|
|
|
bool
|
|
|
|
prompt "Invert X coordinate value."
|
|
|
|
default y
|
|
|
|
|
|
|
|
config LV_TOUCH_INVERT_Y
|
|
|
|
bool
|
|
|
|
prompt "Invert Y coordinate value."
|
|
|
|
default y
|
|
|
|
endmenu
|
2021-07-08 09:04:07 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
menu "Touchpanel (ADCRAW) Pin Assignments"
|
|
|
|
depends on LV_TOUCH_CONTROLLER_ADCRAW
|
|
|
|
|
|
|
|
config LV_TOUCHSCREEN_RESISTIVE_PIN_YU
|
|
|
|
int
|
|
|
|
prompt "GPIO Y+"
|
|
|
|
default 26 if CONFIG_LV_PREDEFINED_DISPLAY_WROVER4
|
|
|
|
default 26
|
|
|
|
|
|
|
|
help
|
|
|
|
Configure the touchpanel Y+ pin. Can be a regular GPIO.
|
|
|
|
|
|
|
|
config LV_TOUCHSCREEN_RESISTIVE_PIN_YD
|
|
|
|
int
|
|
|
|
prompt "GPIO/ADC Y-"
|
|
|
|
default 32 if CONFIG_LV_PREDEFINED_DISPLAY_WROVER4
|
|
|
|
default 32
|
|
|
|
|
|
|
|
help
|
|
|
|
Configure the touchpanel Y- pin. Must be ADC input.
|
2021-07-08 09:04:07 +00:00
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
config LV_TOUCHSCREEN_RESISTIVE_PIN_XL
|
|
|
|
int
|
|
|
|
prompt "GPIO X-"
|
|
|
|
default 27 if CONFIG_LV_PREDEFINED_DISPLAY_WROVER4
|
|
|
|
default 27
|
|
|
|
|
|
|
|
help
|
|
|
|
Configure the touchpanel X- pin. Can be a regular GPIO.
|
|
|
|
|
|
|
|
config LV_TOUCHSCREEN_RESISTIVE_PIN_XR
|
|
|
|
int
|
|
|
|
prompt "GPIO/ADC X+"
|
|
|
|
default 33 if CONFIG_LV_PREDEFINED_DISPLAY_WROVER4
|
|
|
|
default 33
|
|
|
|
|
|
|
|
help
|
|
|
|
Configure the touchpanel X- pin. Must be ADC input.
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Touchpanel Configuration (ADCRAW)"
|
|
|
|
depends on LV_TOUCH_CONTROLLER_ADCRAW
|
|
|
|
|
|
|
|
config LV_TOUCH_X_MIN
|
|
|
|
int
|
|
|
|
prompt "Minimum X coordinate value."
|
|
|
|
default 160
|
|
|
|
|
|
|
|
config LV_TOUCH_Y_MIN
|
|
|
|
int
|
|
|
|
prompt "Minimum Y coordinate value."
|
|
|
|
default 230
|
|
|
|
|
|
|
|
config LV_TOUCH_X_MAX
|
|
|
|
int
|
|
|
|
prompt "Maximum X coordinate value."
|
|
|
|
default 3800
|
|
|
|
|
|
|
|
config LV_TOUCH_Y_MAX
|
|
|
|
int
|
|
|
|
prompt "Maximum Y coordinate value."
|
|
|
|
default 3800
|
|
|
|
|
|
|
|
config LV_TOUCH_XY_SWAP
|
|
|
|
bool
|
|
|
|
prompt "Swap XY."
|
|
|
|
default n
|
|
|
|
|
|
|
|
config LV_TOUCH_INVERT_X
|
|
|
|
bool
|
|
|
|
prompt "Invert X coordinate value."
|
|
|
|
default y
|
|
|
|
|
|
|
|
config LV_TOUCH_INVERT_Y
|
|
|
|
bool
|
|
|
|
prompt "Invert Y coordinate value."
|
|
|
|
default y
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Touchpanel Configuration (RA8875)"
|
|
|
|
depends on LV_TOUCH_CONTROLLER_RA8875
|
|
|
|
|
|
|
|
config LV_TOUCH_X_MIN
|
|
|
|
int
|
|
|
|
prompt "Minimum X coordinate ADC value"
|
2021-12-18 17:54:50 +00:00
|
|
|
range 0 1023
|
2020-12-17 06:02:55 +00:00
|
|
|
default 0
|
|
|
|
|
|
|
|
config LV_TOUCH_Y_MIN
|
|
|
|
int
|
|
|
|
prompt "Minimum Y coordinate ADC value"
|
2021-12-18 17:54:50 +00:00
|
|
|
range 0 1023
|
2020-12-17 06:02:55 +00:00
|
|
|
default 0
|
|
|
|
|
|
|
|
config LV_TOUCH_X_MAX
|
|
|
|
int
|
|
|
|
prompt "Maximum X coordinate ADC value"
|
2021-12-18 17:54:50 +00:00
|
|
|
range 0 1023
|
2020-12-17 06:02:55 +00:00
|
|
|
default 1023
|
|
|
|
|
|
|
|
config LV_TOUCH_Y_MAX
|
|
|
|
int
|
|
|
|
prompt "Maximum Y coordinate ADC value"
|
2021-12-18 17:54:50 +00:00
|
|
|
range 0 1023
|
2020-12-17 06:02:55 +00:00
|
|
|
default 1023
|
|
|
|
|
|
|
|
config LV_TOUCH_XY_SWAP
|
|
|
|
bool
|
|
|
|
prompt "Swap XY"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config LV_TOUCH_INVERT_X
|
|
|
|
bool
|
|
|
|
prompt "Invert X coordinate value"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config LV_TOUCH_INVERT_Y
|
|
|
|
bool
|
|
|
|
prompt "Invert Y coordinate value"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config LV_TOUCH_RA8875_SAMPLE_TIME
|
|
|
|
int
|
|
|
|
prompt "TP Sample Time Adjusting"
|
2021-12-18 17:54:50 +00:00
|
|
|
range 0 7
|
2020-12-17 06:02:55 +00:00
|
|
|
default 0
|
|
|
|
|
|
|
|
config LV_TOUCH_RA8875_ADC_CLOCK
|
|
|
|
int
|
|
|
|
prompt "ADC Clock Setting"
|
2021-12-18 17:54:50 +00:00
|
|
|
range 0 7
|
2020-12-17 06:02:55 +00:00
|
|
|
default 0
|
|
|
|
|
|
|
|
config LV_TOUCH_RA8875_WAKEUP_ENABLE
|
|
|
|
bool
|
|
|
|
prompt "Touch Panel Wakeup Enable"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config LV_TOUCH_RA8875_EXTERNAL_VREF
|
|
|
|
bool
|
|
|
|
prompt "TP ADC Use External Reference Voltage Source"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config LV_TOUCH_RA8875_DEBOUNCE_ENABLE
|
|
|
|
bool
|
|
|
|
prompt "De-bounce Circuit Enable for Touch Panel Interrupt"
|
|
|
|
default y
|
|
|
|
|
|
|
|
endmenu
|
2021-06-11 03:49:56 +00:00
|
|
|
|
2022-08-06 21:31:06 +00:00
|
|
|
menu "Touchpanel Configuration (CST816)"
|
|
|
|
depends on LV_TOUCH_CONTROLLER_CST816
|
|
|
|
|
|
|
|
config LV_TOUCH_X_MAX_CST816
|
|
|
|
int
|
|
|
|
prompt "Maximum X coordinate ADC value"
|
|
|
|
range 0 1023
|
|
|
|
default 320
|
|
|
|
|
|
|
|
config LV_TOUCH_Y_MAX_CST816
|
|
|
|
int
|
|
|
|
prompt "Maximum Y coordinate ADC value"
|
|
|
|
range 0 1023
|
|
|
|
default 240
|
|
|
|
|
|
|
|
config LV_SWAPXY_CST816
|
|
|
|
bool
|
|
|
|
prompt "Swap X with Y coordinate."
|
|
|
|
default y
|
|
|
|
|
|
|
|
config LV_INVERT_X_CST816
|
|
|
|
bool
|
|
|
|
prompt "Invert X coordinate value."
|
|
|
|
default y
|
|
|
|
|
|
|
|
config LV_INVERT_Y_CST816
|
|
|
|
bool
|
|
|
|
prompt "Invert Y coordinate value."
|
|
|
|
default n
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
2021-06-11 03:49:56 +00:00
|
|
|
menu "Touchpanel Configuration (GT911)"
|
|
|
|
depends on LV_TOUCH_CONTROLLER_GT911
|
|
|
|
|
2021-12-18 17:54:50 +00:00
|
|
|
config LV_GT911_SWAPXY
|
|
|
|
bool
|
|
|
|
prompt "Swap X with Y coordinate."
|
|
|
|
default y
|
2021-06-11 03:49:56 +00:00
|
|
|
|
|
|
|
config LV_GT911_INVERT_X
|
|
|
|
bool
|
|
|
|
prompt "Invert X coordinate value."
|
|
|
|
default n
|
|
|
|
|
|
|
|
config LV_GT911_INVERT_Y
|
|
|
|
bool
|
|
|
|
prompt "Invert Y coordinate value."
|
|
|
|
default y
|
|
|
|
|
|
|
|
endmenu
|
2020-12-17 06:02:55 +00:00
|
|
|
|
2021-07-08 09:04:07 +00:00
|
|
|
choice
|
|
|
|
prompt "Select an I2C port for the touch panel"
|
|
|
|
default LV_I2C_TOUCH_PORT_0
|
|
|
|
depends on LV_I2C_TOUCH
|
|
|
|
|
|
|
|
config LV_I2C_TOUCH_PORT_0
|
|
|
|
bool
|
|
|
|
prompt "I2C port 0"
|
2021-12-18 17:54:50 +00:00
|
|
|
help
|
2021-07-14 11:12:49 +00:00
|
|
|
I2C is shared peripheral managed by I2C Manager. In order to configure I2C Manager (pinout, etc.) see menu
|
|
|
|
Component config->I2C Port Settings.
|
2021-07-08 09:04:07 +00:00
|
|
|
|
|
|
|
config LV_I2C_TOUCH_PORT_1
|
|
|
|
bool
|
|
|
|
prompt "I2C port 1"
|
2021-12-18 17:54:50 +00:00
|
|
|
help
|
2021-07-14 11:12:49 +00:00
|
|
|
I2C is shared peripheral managed by I2C Manager. In order to configure I2C Manager (pinout, etc.) see menu
|
|
|
|
Component config->I2C Port Settings.
|
2021-07-08 09:04:07 +00:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config LV_I2C
|
|
|
|
bool
|
|
|
|
default y if LV_I2C_TOUCH
|
|
|
|
|
|
|
|
config LV_I2C_TOUCH_PORT
|
|
|
|
int
|
|
|
|
default 1 if LV_I2C_TOUCH_PORT_1
|
|
|
|
default 0
|
|
|
|
|
2020-12-17 06:02:55 +00:00
|
|
|
endmenu
|
2021-07-08 09:04:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|