forked from Xinyuan-LilyGO/LilyGO-T-ETH-Series
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
115 lines (89 loc) · 2.65 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
; 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
[platformio]
;! Choose the board to use
; default_envs = T-ETH-POE
; default_envs = T-INTERNET-COM
; default_envs = T-ETH-Lite-ESP32
; default_envs = T-ETH-Lite-ESP32S3
default_envs = T-ETH-POE-PRO
; !Select an example to use
src_dir = examples/UnitTestExample
; src_dir = examples/ETHOTA
; src_dir = examples/HelloServer
; src_dir = examples/MQTTClient
; src_dir = examples/ESPMQTTSClient
; src_dir = examples/TCPClient
; src_dir = examples/TCPServer
; src_dir = examples/UDPClientSender
; src_dir = examples/UDPClientReceiver
; src_dir = examples/SPIExample
; src_dir = examples/WireExample
; !Only suitable for boards with SD card slots
; src_dir = examples/SDWebServer
; ! Only suitable for T-ETH-POE, other boards cannot be used directly
; src_dir = examples/LoRaShiled
; src_dir = examples/SPI_Wire_DevicesExample
; src_dir = examples/SharingSPIBus
; !Only suitable for boards with TFT screen interface
; src_dir = examples/TFT_ILI9341_Shiled
[env]
platform = espressif32
framework = arduino
upload_speed = 921600
monitor_speed = 115200
monitor_filters =
default
esp32_exception_decoder
build_flags =
-DCORE_DEBUG_LEVEL=1
; board_build.partitions = no_ota.csv # more memory for flash
;Use OTA update firmware
; upload_protocol = espota
; upload_port = 192.168.36.107
; ESP32-WROOM-32 + LAN8720 FLASH:4MB PSRAM:4MB
[env:T-ETH-POE]
board = esp32dev
build_flags =
${env.build_flags}
-DLILYGO_T_ETH_POE
; ESP32-WROVER-E + LAN8720 FLASH:16MB PSRAM:8MB
[env:T-ETH-POE-PRO]
board = esp32dev
build_flags =
${env.build_flags}
-DLILYGO_T_ETH_POE_PRO
-DUSER_SETUP_LOADED
-include lib/TFT_eSPI/User_Setups/Setup216_LilyGo_ETH_Pro_ESP32.h
; ESP32-WROVER-E + LAN8720 FLASH:16MB PSRAM:8MB
[env:T-INTERNET-COM]
board=esp32dev
build_flags =
${env.build_flags}
-DBOARD_HAS_PSRAM
-DLILYGO_T_INTER_COM
; ESP32-WROVER-E + RTL8201 FLASH:16MB PSRAM:8MB
[env:T-ETH-Lite-ESP32]
board = esp32dev
build_flags =
${env.build_flags}
-DBOARD_HAS_PSRAM
-DLILYGO_T_ETH_LITE_ESP32
-DUSER_SETUP_LOADED
-include lib/TFT_eSPI/User_Setups/Setup216_LilyGo_ETH_Lite_ESP32.h
; ESP32-S3-WROOM-1 + W5500 FLASH:16MB PSRAM:8MB OPI
[env:T-ETH-Lite-ESP32S3]
board=esp32s3box
build_flags =
${env.build_flags}
-DBOARD_HAS_PSRAM
-DLILYGO_TETH_POE
-DLILYGO_T_ETH_LITE_ESP32S3
-UARDUINO_USB_CDC_ON_BOOT