mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
added compile template for TTGO T-Display v1 (esp32 version)
This commit is contained in:
parent
fd91ac5824
commit
11f8d7a44f
@ -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
|
||||
|
44
user_setups/esp32/ttgo-esp32_tdisplay_v1.ini
Normal file
44
user_setups/esp32/ttgo-esp32_tdisplay_v1.ini
Normal 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}
|
Loading…
x
Reference in New Issue
Block a user