-
Notifications
You must be signed in to change notification settings - Fork 18
/
platformio.ini
50 lines (45 loc) · 1.3 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[env]
platform = espressif32
framework = arduino
platform_packages =
framework-arduinoespressif32 @ https://github.com/husarnet/arduino-esp32/releases/download/1.0.4-1/arduino-husarnet-esp32.zip
lib_deps =
; Until our pull requests are merged you need to use AsyncTCP with our fixes for IPv6
https://github.com/husarnet/AsyncTCP.git
ESP Async WebServer
Husarnet ESP32
bblanchon/ArduinoJson @ 6.17
https://github.com/Bodmer/TFT_eSPI.git
[env:esp32dev]
board = esp32dev
monitor_speed = 115200
upload_speed = 921600
monitor_filters = esp32_exception_decoder, default
board_build.partitions = min_spiffs.csv
board_build.embed_txtfiles =
src/index.html
build_flags =
; for AsyncTCP.h
-DCONFIG_ASYNC_TCP_RUNNING_CORE=1
-DCONFIG_ASYNC_TCP_USE_WDT=0
; for LCD/TFT display
; https://github.com/Bodmer/TFT_eSPI/blob/master/Tools/PlatformIO/Configuring%20options.txt
; https://github.com/Bodmer/TFT_eSPI/blob/master/User_Setups/Setup25_TTGO_T_Display.h
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DCGRAM_OFFSET=1
-DTFT_MISO=-1
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=5
-DTFT_DC=16
-DTFT_RST=23
-DTFT_BL=4
-DLOAD_GLCD=1
-DSMOOTH_FONT=1
-TFT_BACKLIGHT_ON=HIGH
-DLOAD_FONT2=1
-DSPI_FREQUENCY=40000000
-DSPI_READ_FREQUENCY=6000000