Update touch screen config

This commit is contained in:
fvanroie 2020-12-26 03:16:02 +01:00
parent 735f730669
commit b7bb58c960
2 changed files with 11 additions and 3 deletions

View File

@ -28,15 +28,20 @@ build_flags =
-D TFT_MOSI=23 ; FCP pin6 SDA -D TFT_MOSI=23 ; FCP pin6 SDA
-D TFT_MISO=25 ; FCP pin7 SDO -D TFT_MISO=25 ; FCP pin7 SDO
-D TFT_BCKL=5 -D TFT_BCKL=5
;CONFIG_LVGL_TOUCH_SCL_GPIO=0 -D TOUCH_DRIVER=6336
;CONFIG_LVGL_TOUCH_SDA_GPIO=4 -D TOUCH_SDA=4
;-D TOUCH_CS=22 -D TOUCH_SCL=0
-D TOUCH_IRQ=-1 ; use 34-39 as these are input only pins
-D TOUCH_RST=-1 ; not used, connected to 3.3V
-D USE_TFT_ESPI=1
;endregion ;endregion
;region -- Library options ------------------------------- ;region -- Library options -------------------------------
lib_deps = lib_deps =
${env.lib_deps} ${env.lib_deps}
${esp32.lib_deps} ${esp32.lib_deps}
;git+https://github.com/lvgl/lvgl_esp32_drivers.git
git+https://github.com/aselectroworks/Arduino-FT6336U.git
lib_ignore = lib_ignore =
${env.lib_ignore} ${env.lib_ignore}

View File

@ -47,6 +47,7 @@ mrb3511 =
-D USER_SETUP_LOADED=1 -D USER_SETUP_LOADED=1
-D TOUCH_DRIVER=911 ; GT911 Capacitive I2C touch panel driver -D TOUCH_DRIVER=911 ; GT911 Capacitive I2C touch panel driver
-D SUPPORT_TRANSACTIONS -D SUPPORT_TRANSACTIONS
-D I2C_TOUCH_FREQUENCY=400000
st7789v = st7789v =
-D ST7789_DRIVER=1 -D ST7789_DRIVER=1
@ -64,6 +65,7 @@ st7789v =
-D USER_SETUP_LOADED=1 -D USER_SETUP_LOADED=1
-D TOUCH_DRIVER=6336 ; FT6336U Capacitive I2C touch panel driver -D TOUCH_DRIVER=6336 ; FT6336U Capacitive I2C touch panel driver
-D SUPPORT_TRANSACTIONS -D SUPPORT_TRANSACTIONS
-D I2C_TOUCH_FREQUENCY=400000
wireless-tag = wireless-tag =
-D ST7796_DRIVER=1 -D ST7796_DRIVER=1
@ -75,3 +77,4 @@ wireless-tag =
-D USER_SETUP_LOADED=1 -D USER_SETUP_LOADED=1
-D TOUCH_DRIVER=6336 ; FT6336U Capacitive I2C touch panel driver -D TOUCH_DRIVER=6336 ; FT6336U Capacitive I2C touch panel driver
-D SUPPORT_TRANSACTIONS -D SUPPORT_TRANSACTIONS
-D I2C_TOUCH_FREQUENCY=400000