Merge pull request #411 from marc-gist/tdisplay

Add configuration filr for TTGO T-Display v1 (esp32 version)
This commit is contained in:
fvanroie 2023-01-01 16:43:25 +01:00 committed by GitHub
commit c52d69b4fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View File

@ -62,6 +62,7 @@ extra_default_envs =
; ttgo-lilygo-pi_st7796
; ttgo-t7-v1.5_ili9341_16MB
; ttgo-t7-v1.5_ili9341_4MB
; ttgo-esp32_tdisplay_v1
; wt32-sc01_16MB
; wt32-sc01_4MB
; wt32-sc01-plus_16MB

View File

@ -0,0 +1,44 @@
[env:ttgo-esp32_tdisplay_v1]
extends = esp32_4mb_v2
board = esp32dev
build_flags =
-D HASP_MODEL="TTGO T-Display"
${env.build_flags}
${esp32.build_flags}
${esp32.no_ps_ram}
; -D LGFX_USE_V1=1; LGFX lib, no rotation support yet
-D USER_SETUP_LOADED=1 ; for espi lib, LGFX works without rotation
-D HASP_USE_LGFX_TOUCH=-1
-D ST7789_DRIVER=1
-D TFT_RGB_ORDER=0
-D TFT_SDA_READ
-D TFT_WIDTH=135
-D TFT_HEIGHT=240
-D TFT_RGB_ORDER=0
-D SPI_FREQUENCY=40000000
-D SPI_READ_FREQUENCY=14000000
-D SUPPORT_TRANSACTIONS
-D TFT_RST=23 ; FCP pin2 RESET
-D TFT_SCLK=18 ; FCP pin3 SCL
-D TFT_DC=16 ; FCP pin4 D/C
-D TFT_CS=5 ; FCP pin5 CS
-D TFT_MOSI=19 ; FCP pin6 SDA
-D TFT_MISO=-1 ; FCP pin7 SDO
-D TFT_BCKL=4
lib_deps =
${env.lib_deps}
${esp32.lib_deps}
; ${lovyangfx.lib_deps}
${tft_espi.lib_deps}
lib_ignore =
${env.lib_ignore}
${esp32.lib_ignore}
${arduino_esp32_v2.lib_ignore}
extra_scripts =
${env.extra_scripts}
${esp32.extra_scripts}