;***************************************************;
;   AZ ArduiTouch PCB with ESP32 with 2.4" or 2.8"  ;
;               - ESP32-WROOM-32 board              ;
;               - ili9341 TFT                       ;
;               - xpt2046 touch controller          ;
;***************************************************;

[env:arduitouch-esp32_ili9341]
extends = esp32
board = esp32dev

build_flags =
    ${env.build_flags}
    ${esp32.build_flags}
    -D HASP_MODEL="Arduitouch ESP32"

;region -- TFT_eSPI build options ------------------------
    ${lcd.lolin24}
    ${esp32.vspi}        ; Use VSPI hardware SPI bus
    -D TFT_DC=4
    -D TFT_CS=5 
    -D TFT_RST=22        ; RST
    -D TFT_BCKL=15
    -D TOUCH_CS=14
    -D TFT_BACKLIGHT_ON=LOW
;endregion

;region -- Library options -------------------------------
lib_deps =
    ${env.lib_deps}
    ${esp32.lib_deps}

lib_ignore =
    ${env.lib_ignore}
    ${esp32.lib_ignore}
;endregion