Files
2026-10-27 15:41:59 +03:00

44 lines
1.1 KiB
INI

; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
lib_deps =
bodmer/TFT_eSPI @ ^2.5.43
bblanchon/ArduinoJson @ ^7.2.0
; Настройка TFT_eSPI без правки User_Setup.h внутри библиотеки.
build_flags =
-D USER_SETUP_LOADED=1
-D ILI9341_DRIVER=1
-D TFT_WIDTH=240
-D TFT_HEIGHT=320
-D TFT_MISO=19
-D TFT_MOSI=23
-D TFT_SCLK=18
-D TFT_CS=5
-D TFT_DC=21
-D TFT_RST=15
-D TFT_BL=22
-D TFT_BACKLIGHT_ON=HIGH
-D TOUCH_CS=4
-D USE_HSPI_PORT=1
-D SPI_FREQUENCY=40000000
-D SPI_READ_FREQUENCY=16000000
-D SPI_TOUCH_FREQUENCY=2500000
-D LOAD_GLCD=1
-D LOAD_FONT2=1
-D LOAD_FONT4=1
-D LOAD_GFXFF=1
-D SMOOTH_FONT=1