This commit is contained in:
fvanroie 2023-01-05 22:37:30 +01:00
commit 7c10f4a655
3 changed files with 46 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# openHASP firmware
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/HASwitchPlate/openHASP/Build%20branch?label=build%20status&logo=github&logoColor=%23dddddd)](https://github.com/HASwitchPlate/openHASP/actions)
[![GitHub Workflow Status]( https://img.shields.io/github/actions/workflow/status/HASwitchPlate/openHASP/build.yaml?branch=master&label=build%20status&logo=github&logoColor=%23dddddd)](https://github.com/HASwitchPlate/openHASP/actions)
[![GitHub release](https://img.shields.io/github/v/release/HASwitchPlate/openHASP?include_prereleases)](https://github.com/HASwitchPlate/openHASP/releases)
[![GitHub issues](https://img.shields.io/github/issues/HASwitchPlate/openHASP.svg)](http://github.com/HASwitchPlate/openHASP/issues)
[![Discord](https://img.shields.io/discord/538814618106331137?color=%237289DA&label=discord&logo=discord&logoColor=white)][3]

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}