Repository navigation
Expand file tree
/
Copy pathplatformio.ini
More file actions
258 lines (245 loc) · 5.97 KB
/
Copy pathplatformio.ini
File metadata and controls
258 lines (245 loc) · 5.97 KB
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
; 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:esp32]
platform = espressif32@ ^7.0.0
board = esp32dev
framework = arduino
monitor_speed = 115200
monitor_port = COM6
upload_port = COM6
upload_speed = 921600
lib_deps =
arduino-libraries/NTPClient @ ^3.2.1
robtillaart/CRC @ ^1.0.2
nanopb/Nanopb @ ^0.4.8
gyverlibs/UnixTime @ ^1.1
bblanchon/ArduinoJson @ ^7.0.0
knolleary/PubSubClient @ ^2.8
olikraus/U8g2 @ ^2.35.19
bodmer/TFT_eSPI @ ^2.5.43
ESP32Async/AsyncTCP @ ^3.4.2
ESP32Async/ESPAsyncWebServer @ ^3.7.7
custom_nanopb_protos =
+<include/proto/AppGetHistPower.proto>
+<include/proto/RealtimeDataNew.proto>
+<include/proto/GetConfig.proto>
+<include/proto/CommandPB.proto>
+<include/proto/AlarmData.proto>
+<include/proto/APPInformationData.proto>
extra_scripts = pre:version_inc.py
board_build.partitions = custom_partitions.csv
monitor_filters =
esp32_exception_decoder
default
time
build_flags =
-DUSER_SETUP_LOADED=1
-DGC9A01_DRIVER=1
-DTFT_WIDTH=240
-DTFT_HEIGHT=240
-DTFT_MISO=19
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=-1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=27000000
[env:esp32_S3]
platform = espressif32@ ^7.0.0
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
monitor_port = COM3
upload_port = COM3
upload_speed = 921600
lib_deps =
arduino-libraries/NTPClient @ ^3.2.1
robtillaart/CRC @ ^1.0.2
nanopb/Nanopb @ ^0.4.8
gyverlibs/UnixTime @ ^1.1
bblanchon/ArduinoJson @ ^7.0.0
knolleary/PubSubClient @ ^2.8
olikraus/U8g2 @ ^2.35.19
bodmer/TFT_eSPI @ ^2.5.43
ESP32Async/AsyncTCP @ ^3.4.2
ESP32Async/ESPAsyncWebServer @ ^3.7.7
custom_nanopb_protos =
+<include/proto/AppGetHistPower.proto>
+<include/proto/RealtimeDataNew.proto>
+<include/proto/GetConfig.proto>
+<include/proto/CommandPB.proto>
+<include/proto/AlarmData.proto>
+<include/proto/APPInformationData.proto>
extra_scripts = pre:version_inc.py
board_build.partitions = custom_partitions.csv
monitor_filters =
esp32_exception_decoder
default
time
build_flags =
-DUSER_SETUP_LOADED=1
-DGC9A01_DRIVER=1
-DTFT_WIDTH=240
-DTFT_HEIGHT=240
-DTFT_MISO=19
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=-1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=27000000
[env:esp32_S3_16MB_N16R8]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
; Memory and Flash Configuration
board_build.arduino.memory_type = qio_opi
board_build.arduino.ldscript = esp32s3_out.ld
board_build.flash_mode = qio
board_build.psram_type = opi
board_upload.flash_size = 16MB
board_upload.maximum_ram_size = 327680
board_upload.maximum_size = 16777216
board_build.partitions = default_16MB.csv
; CPU and Flash Frequencies
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
; Board-specific flags from JSON definition
board_build.extra_flags =
-DARDUINO_ESP32S3_DEV
-DBOARD_HAS_PSRAM
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
monitor_speed = 115200
monitor_port = COM4
upload_port = COM4
upload_speed = 921600
lib_deps =
arduino-libraries/NTPClient @ ^3.2.1
robtillaart/CRC @ ^1.0.2
nanopb/Nanopb @ ^0.4.8
gyverlibs/UnixTime @ ^1.1
bblanchon/ArduinoJson @ ^7.0.0
knolleary/PubSubClient @ ^2.8
olikraus/U8g2 @ ^2.35.19
bodmer/TFT_eSPI @ ^2.5.43
ESP32Async/AsyncTCP @ ^3.4.2
ESP32Async/ESPAsyncWebServer @ ^3.7.7
custom_nanopb_protos =
+<include/proto/AppGetHistPower.proto>
+<include/proto/RealtimeDataNew.proto>
+<include/proto/GetConfig.proto>
+<include/proto/CommandPB.proto>
+<include/proto/AlarmData.proto>
+<include/proto/APPInformationData.proto>
extra_scripts = pre:version_inc.py
monitor_filters =
esp32_exception_decoder
default
time
build_flags =
-DUSER_SETUP_LOADED=1
-DGC9A01_DRIVER=1
-DTFT_WIDTH=240
-DTFT_HEIGHT=240
-DTFT_MISO=19
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=-1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=27000000
[env:esp32_S3_lcd_128]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
; Memory and Flash Configuration
board_build.arduino.memory_type = qio_qspi
board_build.flash_mode = qio
board_build.psram_type = qspi
board_upload.flash_size = 16MB
board_build.partitions = default_16MB.csv
board_build.extra_flags =
-DBOARD_HAS_PSRAM
-DUSE_HSPI_PORT
; CPU and Flash Frequencies
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
monitor_speed = 115200
upload_speed = 921600
lib_deps =
arduino-libraries/NTPClient @ ^3.2.1
robtillaart/CRC @ ^1.0.2
nanopb/Nanopb @ ^0.4.8
gyverlibs/UnixTime @ ^1.1
bblanchon/ArduinoJson @ ^7.0.0
knolleary/PubSubClient @ ^2.8
olikraus/U8g2 @ ^2.35.19
bodmer/TFT_eSPI @ ^2.5.43
ESP32Async/AsyncTCP @ ^3.4.2
ESP32Async/ESPAsyncWebServer @ ^3.7.7
custom_nanopb_protos =
+<include/proto/AppGetHistPower.proto>
+<include/proto/RealtimeDataNew.proto>
+<include/proto/GetConfig.proto>
+<include/proto/CommandPB.proto>
+<include/proto/AlarmData.proto>
+<include/proto/APPInformationData.proto>
extra_scripts = pre:version_inc.py
monitor_filters =
esp32_exception_decoder
default
time
build_flags =
-DUSER_SETUP_LOADED=1
-D DGC9A01_MOUNTED=1
-D USE_HSPI_PORT=1 ; Fix for when screen doesn't boot up
-DGC9A01_DRIVER=1
-DTFT_WIDTH=240
-DTFT_HEIGHT=240
-D TFT_MISO=-1
-D TFT_MOSI=11
-D TFT_SCLK=10
-D TFT_CS=9
-D TFT_DC=8
-D TFT_RST=12
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=27000000