11menu "LVGL Touch controller"
22
33 config LV_TOUCH_CONTROLLER
4- int
5- default 0 if LV_TOUCH_CONTROLLER_NONE
6- default 1 if LV_TOUCH_CONTROLLER_XPT2046
7- default 2 if LV_TOUCH_CONTROLLER_FT6X06
8- default 3 if LV_TOUCH_CONTROLLER_STMPE610
4+ int
5+ default 0 if LV_TOUCH_CONTROLLER_NONE
6+ default 1 if LV_TOUCH_CONTROLLER_XPT2046
7+ default 2 if LV_TOUCH_CONTROLLER_FT6X06
8+ default 3 if LV_TOUCH_CONTROLLER_STMPE610
99 default 4 if LV_TOUCH_CONTROLLER_ADCRAW
1010 default 5 if LV_TOUCH_CONTROLLER_FT81X
1111 default 6 if LV_TOUCH_CONTROLLER_RA8875
1212 default 7 if LV_TOUCH_CONTROLLER_GT911
1313
1414 choice
15- prompt "Select a touch panel controller model."
16- default LV_TOUCH_CONTROLLER_NONE
17- help
18- Select the controller for your touch panel.
19-
20- config LV_TOUCH_CONTROLLER_NONE
21- bool "None"
22- config LV_TOUCH_CONTROLLER_XPT2046
15+ prompt "Select a touch panel controller model."
16+ default LV_TOUCH_CONTROLLER_NONE
17+ help
18+ Select the controller for your touch panel.
19+
20+ config LV_TOUCH_CONTROLLER_NONE
21+ bool "None"
22+ config LV_TOUCH_CONTROLLER_XPT2046
2323 select LV_TOUCH_DRIVER_PROTOCOL_SPI
2424 bool "XPT2046"
25- config LV_TOUCH_CONTROLLER_FT6X06
25+ config LV_TOUCH_CONTROLLER_FT6X06
2626 select LV_I2C_TOUCH
2727 bool "FT6X06"
2828 config LV_TOUCH_CONTROLLER_STMPE610
@@ -61,23 +61,20 @@ menu "LVGL Touch controller"
6161 bool
6262 help
6363 Touch controller uses same interface/device as display
64- (Note: Display must be initialized before touch)
64+ (Note: Display must be initialized before touch)
6565
6666 choice
6767 prompt "Touch Controller SPI Bus."
6868 depends on LV_TOUCH_DRIVER_PROTOCOL_SPI
6969
70- default LV_TOUCH_CONTROLLER_SPI_VSPI if !IDF_TARGET_ESP32S2
71- default LV_TOUCH_CONTROLLER_SPI_FSPI if IDF_TARGET_ESP32S2
70+ default LV_TOUCH_CONTROLLER_SPI2_HOST
7271 help
73- Select the SPI Bus the TFT Display is attached to.
74-
75- config LV_TOUCH_CONTROLLER_SPI_HSPI
76- bool "HSPI"
77- config LV_TOUCH_CONTROLLER_SPI_VSPI
78- bool "VSPI" if !IDF_TARGET_ESP32S2
79- config LV_TOUCH_CONTROLLER_SPI_FSPI
80- bool "FSPI" if IDF_TARGET_ESP32S2
72+ Select the SPI Bus the touch controller is attached to.
73+
74+ config LV_TOUCH_CONTROLLER_SPI2_HOST
75+ bool "SPI2_HOST"
76+ config LV_TOUCH_CONTROLLER_SPI3_HOST
77+ bool "SPI3_HOST"
8178 endchoice
8279
8380 menu "Touchpanel (XPT2046) Pin Assignments"
@@ -86,7 +83,7 @@ menu "LVGL Touch controller"
8683 config LV_TOUCH_SPI_MISO
8784 int
8885 prompt "GPIO for MISO (Master In Slave Out)"
89-
86+
9087 default 35 if LV_PREDEFINED_PINS_38V1
9188 default 19
9289 help
@@ -103,7 +100,7 @@ menu "LVGL Touch controller"
103100
104101 config LV_TOUCH_SPI_CLK
105102 int "GPIO for CLK (SCK / Serial Clock)"
106-
103+
107104 default 26 if LV_PREDEFINED_PINS_38V1
108105 default 18
109106 help
@@ -119,7 +116,7 @@ menu "LVGL Touch controller"
119116
120117 config LV_TOUCH_PIN_IRQ
121118 int "GPIO for IRQ (Interrupt Request)"
122-
119+
123120 default 27 if LV_PREDEFINED_PINS_38V4
124121 default 25
125122 help
@@ -153,10 +150,10 @@ menu "LVGL Touch controller"
153150 default 4095 if LV_PREDEFINED_PINS_38V4
154151 default 1900
155152
156- config LV_TOUCH_XY_SWAP
157- bool
158- prompt "Swap XY."
159- default y
153+ config LV_TOUCH_XY_SWAP
154+ bool
155+ prompt "Swap XY."
156+ default y
160157
161158 config LV_TOUCH_INVERT_X
162159 bool
@@ -216,7 +213,7 @@ menu "LVGL Touch controller"
216213 config LV_TOUCH_SPI_MISO
217214 int
218215 prompt "GPIO for MISO (Master In Slave Out)"
219-
216+
220217 default 35 if LV_PREDEFINED_PINS_38V1
221218 default 19 if LV_PREDEFINED_DISPLAY_ADA_FEATHERWING
222219 default 19
@@ -278,9 +275,9 @@ menu "LVGL Touch controller"
278275 default 3800
279276
280277 config LV_TOUCH_XY_SWAP
281- bool
282- prompt "Swap XY."
283- default n
278+ bool
279+ prompt "Swap XY."
280+ default n
284281
285282 config LV_TOUCH_INVERT_X
286283 bool
@@ -379,25 +376,25 @@ menu "LVGL Touch controller"
379376 config LV_TOUCH_X_MIN
380377 int
381378 prompt "Minimum X coordinate ADC value"
382- range 0 1023
379+ range 0 1023
383380 default 0
384381
385382 config LV_TOUCH_Y_MIN
386383 int
387384 prompt "Minimum Y coordinate ADC value"
388- range 0 1023
385+ range 0 1023
389386 default 0
390387
391388 config LV_TOUCH_X_MAX
392389 int
393390 prompt "Maximum X coordinate ADC value"
394- range 0 1023
391+ range 0 1023
395392 default 1023
396393
397394 config LV_TOUCH_Y_MAX
398395 int
399396 prompt "Maximum Y coordinate ADC value"
400- range 0 1023
397+ range 0 1023
401398 default 1023
402399
403400 config LV_TOUCH_XY_SWAP
@@ -418,13 +415,13 @@ menu "LVGL Touch controller"
418415 config LV_TOUCH_RA8875_SAMPLE_TIME
419416 int
420417 prompt "TP Sample Time Adjusting"
421- range 0 7
418+ range 0 7
422419 default 0
423420
424421 config LV_TOUCH_RA8875_ADC_CLOCK
425422 int
426423 prompt "ADC Clock Setting"
427- range 0 7
424+ range 0 7
428425 default 0
429426
430427 config LV_TOUCH_RA8875_WAKEUP_ENABLE
@@ -447,10 +444,10 @@ menu "LVGL Touch controller"
447444 menu "Touchpanel Configuration (GT911)"
448445 depends on LV_TOUCH_CONTROLLER_GT911
449446
450- config LV_GT911_SWAPXY
451- bool
452- prompt "Swap X with Y coordinate."
453- default y
447+ config LV_GT911_SWAPXY
448+ bool
449+ prompt "Swap X with Y coordinate."
450+ default y
454451
455452 config LV_GT911_INVERT_X
456453 bool
@@ -472,14 +469,14 @@ menu "LVGL Touch controller"
472469 config LV_I2C_TOUCH_PORT_0
473470 bool
474471 prompt "I2C port 0"
475- help
472+ help
476473 I2C is shared peripheral managed by I2C Manager. In order to configure I2C Manager (pinout, etc.) see menu
477474 Component config->I2C Port Settings.
478475
479476 config LV_I2C_TOUCH_PORT_1
480477 bool
481478 prompt "I2C port 1"
482- help
479+ help
483480 I2C is shared peripheral managed by I2C Manager. In order to configure I2C Manager (pinout, etc.) see menu
484481 Component config->I2C Port Settings.
485482
0 commit comments