xpt2048 add option for using only touch pressure and ignoring IRQ

This commit is contained in:
Christopher Liebman 2020-12-25 12:42:01 -08:00
parent 0fc057b22c
commit c445eca696
3 changed files with 22 additions and 7 deletions

View file

@ -99,7 +99,6 @@ menu "LVGL Touch controller"
range 0 39
default 35 if LV_PREDEFINED_PINS_38V1
default 19
help
Configure the touchpanel MISO pin here.
@ -109,7 +108,6 @@ menu "LVGL Touch controller"
range 0 39
default 32 if LV_PREDEFINED_PINS_38V1
default 23
help
Configure the touchpanel MOSI pin here.
@ -135,7 +133,7 @@ menu "LVGL Touch controller"
default 27 if LV_PREDEFINED_PINS_38V4
default 25
help
Configure the touchpanel CS pin here.
Configure the touchpanel IRQ pin here.
endmenu
menu "Touchpanel Configuration (XPT2046)"
@ -180,10 +178,17 @@ menu "LVGL Touch controller"
prompt "Invert Y coordinate value."
default y
config LV_TOUCH_CHECK
bool
prompt "Check touch pressure to validate LV_TOUCH_PIN_IRQ"
default n
config LV_TOUCH_ONLY
bool
prompt "Only use touch pressure and not IRQ to detect a touch"
depends on LV_TOUCH_CHECK
default n
endmenu
menu "Touchpanel (FT6X06) Pin Assignments"