-
Notifications
You must be signed in to change notification settings - Fork 3
/
platformio.ini
286 lines (236 loc) · 7.11 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
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
; PlatformIO Project Configuration File
; https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = nano33iot, mkrwifi1010, rp2040connect, rp2040connect-mbed, t_pico_c3, unoR4wifi, portentaC33, pico_esp8266, uno, linux
[env]
framework = arduino
monitor_speed = 115200
# The project will use the letest Blynk.NCP binary by default
# You can also specify the version
#custom_ncp.firmware_ver = v0.6.3
extra_scripts =
tools/extra_upload_ncp.py
tools/extra_ota_bin.py
lib_deps =
blynkkk/Blynk@1.3.2
jandrassy/ArduinoOTA@1.0.11
OneButton=https://github.com/mathertel/OneButton/archive/refs/heads/master.zip
build_src_flags =
-Wall -Wextra ; Additional warnings
build_flags =
-Wswitch -Wuninitialized
-Wunused-function
-Werror=return-type ; Fail on return type error
-DNO_OTA_NETWORK ; Disable network functions in ArduinoOTA
[rp2040]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board_build.core = earlephilhower
board_build.filesystem_size = 1M
lib_ignore =
WiFi
[rp2040:mbed]
platform = raspberrypi
lib_ignore =
WiFi
ArduinoOTA
[renesas]
platform = renesas-ra@1.3.1
lib_ignore =
WiFiC3
WiFiS3
########################################################
## Dual-MCU boards
########################################################
[env:nano33iot]
platform = atmelsam
board = nano_33_iot
custom_ncp.firmware = nina_w102.flash.bin
custom_ncp.upload_speed = 921600
[env:mkrwifi1010]
platform = atmelsam
board = mkrwifi1010
custom_ncp.firmware = nina_w102.flash.bin
custom_ncp.upload_speed = 921600
[env:rp2040connect]
extends = rp2040
board = arduino_nano_connect
board_build.filesystem_size = 8M
custom_ncp.firmware = nina_w102.flash.bin
custom_ncp.upload_speed = 921600
custom_ncp.before_upload = no_reset
[env:rp2040connect-mbed]
extends = rp2040:mbed
board = nanorp2040connect
custom_ncp.firmware = nina_w102.flash.bin
custom_ncp.upload_speed = 921600
custom_ncp.before_upload = no_reset
[env:t_pico_c3]
extends = rp2040
board = rpipico
board_upload.maximum_size = 4194304
board_build.filesystem_size = 2M
custom_ncp.flasher = esptool
custom_ncp.firmware = lilygo_pico_c3.flash.bin
custom_ncp.upload_speed = 2000000
custom_ncp.before_upload = usb_reset
custom_ncp.pre_upload_message =
Ensure your T-PicoC3 is connected in ESP mode (USB polarity indicator is GREEN)
custom_ncp.post_upload_message =
Blynk.NCP firmware is now running on the ESP32-S3.
Please switch the Type C cable polarity (the USB indicator should be BLUE) to upload the main firmware.
build_flags =
${env.build_flags}
-DARDUINO_TTGO_T_PICO_C3
-include "include/TPicoC3_config.h"
lib_deps =
${env.lib_deps}
bodmer/TFT_eSPI@2.5.31
[env:unoR4wifi]
extends = renesas
board = uno_r4_wifi
custom_ncp.flasher = esptool
custom_ncp.firmware = uno_r4_wifi.flash.bin
custom_ncp.upload_speed = 2000000
custom_ncp.pre_upload_message =
1. Disconnect the UNO R4 WiFi from your PC
2. Short the pins highlighted in the image using a jumper wire:
https://github.com/blynkkk/BlynkNcpExample/blob/main/docs/Images/Uno-R4-Jumper.png
3. Connect the UNO R4 WiFi to your PC
custom_ncp.post_upload_message =
1. Disconnect the UNO R4 WiFi from your PC
2. Unplug the jumper wire
3. Connect the board to your PC again
build_flags =
${env.build_flags}
-DARDUINO_ARCH_RENESAS_UNO
[env:portentaC33]
extends = renesas
board = portenta_c33
custom_ncp.firmware = generic_esp32c3_4M.flash.bin
custom_ncp.upload_speed = 460800
[env:pico_esp8266]
extends = rp2040
board = rpipico
custom_ncp.firmware = generic_esp8266_4M.flash.bin
custom_ncp.upload_speed = 460800
custom_ncp.manual_reset = yes
#custom_ncp.erase_all = no
custom_ncp.pre_upload_message =
Switch your ESP8266 into Firware update mode:
1. Press and hold the Boot button (on some boards it can be marked as Flash or IO0)
2. Press Reset(RST/EN) button shortly
3. Release the Boot button
custom_ncp.post_upload_message =
Upload complete. Please power-cycle your device (unplug the board completely).
[env:microduino_coreusb]
platform = atmelavr
board = leonardo
custom_ncp.firmware = generic_esp8266_4M.flash.bin
custom_ncp.upload_speed = 115200
custom_ncp.manual_reset = yes
custom_ncp.pre_upload_message =
Switch your ESP8266 into Firware update mode:
1. Unplug your device from USB
2. Press and hold the button on the microduino wifi module
3. Plug in USB
4. Release the Boot button
custom_ncp.post_upload_message =
Upload complete. Please power-cycle your device (unplug the board completely).
build_flags =
-DBLYNK_NCP_TYPE_MICRODUINO_ESP8266
-DBLYNK_NCP_SERIAL=Serial1
-DBLYNK_NCP_BAUD=57600
-DMICRODUINO_OLED ; Optional
lib_deps =
${env.lib_deps}
olikraus/U8glib@1.19.1 ; Optional
[env:wio_terminal]
platform = atmelsam
board = seeed_wio_terminal
custom_ncp.flasher = BlynkNcpFlasher, flash_wio_terminal
custom_ncp.firmware = wio_terminal.zip
build_flags =
${env.build_flags}
-include "include/WioTerminal_config.h"
lib_deps =
${env.lib_deps}
bodmer/TFT_eSPI@2.5.31
lib_ignore =
Seeed_Arduino_LCD
########################################################
## Generic boards (require connecting a separate NCP)
########################################################
[env:uno]
platform = atmelavr
board = uno
custom_ncp.flasher =
build_src_flags =
${env.build_src_flags}
-DBLYNK_NCP_SERIAL=Serial1
-DBLYNK_NCP_BAUD=57600
-DBLYNK_NCP_RX=10
-DBLYNK_NCP_TX=9
#-DBLYNK_NCP_TYPE_WITTY_CLOUD
[env:nano]
platform = atmelavr
board = nanoatmega328new
#board = nanoatmega328
custom_ncp.flasher =
build_src_flags =
${env.build_src_flags}
-DBLYNK_NCP_SERIAL=Serial1
-DBLYNK_NCP_BAUD=57600
-DBLYNK_NCP_RX=10
-DBLYNK_NCP_TX=9
#-DBLYNK_NCP_TYPE_WITTY_CLOUD
[env:promicro8]
platform = atmelavr
board = sparkfun_promicro8
custom_ncp.flasher =
build_src_flags =
${env.build_src_flags}
-DBLYNK_NCP_SERIAL=Serial1
-DBLYNK_NCP_BAUD=57600
#-DBLYNK_NCP_TYPE_WITTY_CLOUD
[env:pico]
extends = rp2040
board = rpipico
custom_ncp.flasher =
build_src_flags =
${env.build_src_flags}
#-DBLYNK_NCP_SERIAL=Serial1
-DBLYNK_NCP_BAUD=115200
[env:pico-mbed]
extends = rp2040:mbed
board = pico
custom_ncp.flasher =
build_src_flags =
${env.build_src_flags}
-DBLYNK_NCP_SERIAL=Serial1
-DBLYNK_NCP_BAUD=115200
[env:linux]
platform = native
custom_ncp.flasher = esptool
custom_ncp.firmware = generic_esp32_4M.flash.bin
custom_ncp.upload_speed = 460800
framework =
lib_deps =
${env.lib_deps}
EpoxyDuino=https://github.com/bxparks/EpoxyDuino.git
lib_ignore =
ArduinoOTA
build_src_flags =
${env.build_src_flags}
#-DBLYNK_NCP_PORT='"/dev/ttyUSB0"'
-DBLYNK_NCP_BAUD=921600
## Uncomment one of these to enable the status LED / user button
#-DBLYNK_NCP_TYPE_WITTY_CLOUD
#-DBLYNK_NCP_TYPE_TTGO_T7
#-DBLYNK_NCP_TYPE_TTGO_T7_S3
#-DBLYNK_NCP_TYPE_TTGO_TOI_PLUS
#-DBLYNK_NCP_TYPE_MACCHINA_SUPERB
build_flags =
${env.build_flags}
-DARDUINO=100 -DLINUX
-DINPUT=1 -DINPUT_PULLUP=2
-lserialport