-
Notifications
You must be signed in to change notification settings - Fork 67
/
platformio.ini
230 lines (182 loc) · 5.78 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
; 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
default_envs = T-ETH-ELite-ESP32S3
; ! Debug .
; default_envs = T-ETH-ELite-ESP32S3-LR1121 , T-ETH-ELite-ESP32S3-SX1262 , T-ETH-ELite-ESP32S3-SX1276 , T-ETH-ELite-ESP32S3-SX1276-TCXO , T-ETH-ELite-ESP32S3-SX1280 , T-ETH-ELite-ESP32S3-SX1280PA
; !Select an example to use
; src_dir = examples/UnitTestExample
; src_dir = examples/mDNS_Web_Server
; 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
; src_dir = examples/StaticIPAddress
; src_dir = examples/UDPClientSenderDirectPC
; src_dir = examples/UDPClientReceiverDirectPC
; src_dir = examples/AsyncUDPClient
; src_dir = examples/AsyncUDPServer
; src_dir = examples/WebSocketClient
; src_dir = examples/WebSocketServer
; ! Wire bus examples
; src_dir = examples/I2C_HP303BSensor
; src_dir = examples/I2C_BME280Sensor
; ! Serial examples
; src_dir = examples/TinyGPS_Example
; !Only suitable for boards with T-ETH-PRO
; src_dir = examples/RS485_Slave
; src_dir = examples/RS485_Master
; src_dir = examples/RS485_ModBUS
; !Only suitable for boards with T-ETH-Lite-ESP32S3
; src_dir = examples/CameraShield
; !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_Shield
; ; !Only suitable for T-ETH-ELite-Shield
src_dir = examples/T-ETH-ELite-Shield/LoRa_Receive_Interrupt
; src_dir = examples/T-ETH-ELite-Shield/LoRa_Transmit_Interrupt
; src_dir = examples/T-ETH-ELite-Shield/T-ETH-Elite-Gateway-Shield
; src_dir = examples/T-ETH-ELite-Shield/T-ETH-Elite-LTE-Shield
; src_dir = examples/T-ETH-ELite-Shield/T-ETH-Elite-LoRa-Shield
[env]
platform = [email protected]
framework = arduino
upload_speed = 921600
monitor_speed = 115200
monitor_filters =
default
esp32_exception_decoder
build_flags =
-DCORE_DEBUG_LEVEL=1
; Different flash sizes use different partition tables. For details, please refer to https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/partition-tables.html
; When using the CameraShield example it is necessary to change the partition table to huge_app
board_build.partitions = huge_app.csv
; To use OTA update, you need to select the partition that carries the OTA partition.
; board_build.partitions = default.csv ; 4MB partition
; board_build.partitions = default_16MB.csv ; 16MB partition
;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_INTERNET_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_T_ETH_LITE_ESP32S3
-UARDUINO_USB_CDC_ON_BOOT
monitor_filters =
default
esp32_exception_decoder
upload_speed = 921600
monitor_speed = 115200
lib_ignore =
Ethernet
; monitor_rts = 1
; monitor_dtr = 1
; ESP32-S3-WROOM-1 + W5500 FLASH:16MB PSRAM:8MB OPI
[eht_elite_base]
board=esp32s3box
build_flags =
${env.build_flags}
-DBOARD_HAS_PSRAM
-DLILYGO_T_ETH_ELITE_ESP32S3
-UARDUINO_USB_CDC_ON_BOOT
; -DARDUINO_USB_CDC_ON_BOOT=1
monitor_filters =
default
esp32_exception_decoder
upload_speed = 921600
monitor_speed = 115200
lib_ignore =
Ethernet
lib_deps =
SPI
[env:T-ETH-ELite-ESP32S3]
extends = eht_elite_base
build_flags =
${eht_elite_base.build_flags}
[env:T-ETH-ELite-ESP32S3-LR1121]
extends = eht_elite_base
build_flags =
${eht_elite_base.build_flags}
-DUSING_LR1121
[env:T-ETH-ELite-ESP32S3-SX1262]
extends = eht_elite_base
build_flags =
${eht_elite_base.build_flags}
-DUSING_SX1262
[env:T-ETH-ELite-ESP32S3-SX1276]
extends = eht_elite_base
build_flags =
${eht_elite_base.build_flags}
-DUSING_SX1276
[env:T-ETH-ELite-ESP32S3-SX1280]
extends = eht_elite_base
build_flags =
${eht_elite_base.build_flags}
-DUSING_SX1280
[env:T-ETH-ELite-ESP32S3-SX1280PA]
extends = eht_elite_base
build_flags =
${eht_elite_base.build_flags}
-DUSING_SX1280PA
[env:T-ETH-ELite-ESP32S3-SX1276-TCXO]
extends = eht_elite_base
build_flags =
${eht_elite_base.build_flags}
-DUSING_SX1276_TCXO