;***************************************************;
;          TTGO T7 v1.5 Mini32 with Lolin TFT 2.4"  ;
;               - TTGO T7 v1.5 Mini esp32 board     ;
;               - ili9341 TFT                       ;
;               - xpt2046 touch controller          ;
;***************************************************;

[ttgo-t7-v1_5_ili9341]
extends = arduino_esp32_v2
board = esp32dev

build_flags =
    -D HASP_MODEL="TTGO T7 v1.5"
    ${arduino_esp32_v2.build_flags}
    ${esp32.ps_ram}

;region -- TFT_eSPI build options ------------------------
    ${lcd.ili9341}
    ${touch.xpt2046}
    ${esp32.vspi}        ; Use VSPI hardware SPI bus
    -D TFT_DC=5
    -D TFT_CS=26 
    -D TFT_RST=-1        ; RST
    -D TFT_BCKL=22       ; D1 is GPIO 22
    -D TOUCH_CS=27       ; (can also be 22 or 16)
;endregion

lib_deps =
    ${arduino_esp32_v2.lib_deps}
    ${tft_espi.lib_deps}


[env:ttgo-t7-v1_5_ili9341_4MB]
extends = ttgo-t7-v1_5_ili9341, flash_4mb

[env:ttgo-t7-v1_5_ili9341_16MB]
extends = ttgo-t7-v1_5_ili9341, flash_16mb
