;***************************************************;
;          D1 Mini ESP32 with Lolin TFT 2.4"        ;
;               - D1-mini-esp32 board               ;
;               - ili9341 TFT                       ;
;               - xpt2046 touch controller          ;
;***************************************************;

[env:d1-mini-esp32_ili9341]
extends = esp32
board = wemos_d1_mini32

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

;region -- TFT_eSPI build options ------------------------
    ${lcd.lolin24}
    ${esp32.vspi}        ; Use VSPI hardware SPI bus
    -D TFT_DC=5
    -D TFT_CS=26 
    -D TFT_RST=-1        ; RST
    -D TFT_BCKL=-1       ; None, configurable via web UI (e.g. 21)
    -D TOUCH_CS=17       ; (can also be 22 or 16)
;endregion

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

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