-
Notifications
You must be signed in to change notification settings - Fork 2
/
platformio.ini
272 lines (219 loc) · 7.41 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
; 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
; http://docs.platformio.org/page/projectconf.html
[platformio]
default_envs =
nodemcuv2-example-hello
;
; common options for all variants of iotsa
;
[common]
framework = arduino
lib_ldf_mode = deep+
lib_compat_mode = strict
lib_deps =
Adafruit NeoPixel
ArduinoJson
https://github.com/jackjansen/ArduinoJWT ; ArduinoJWT
https://github.com/jackjansen/CoAP-simple-library ; CoAP simple library
treboada/Ds1302
littlefs
monitor_speed = 115200
extra_scripts =
pre:platformio_pre_script.py
;
; Debug options, copy or include with ${section.option} syntax
;
[use_debug_prints]
build_type = debug
monitor_filters = esp32_exception_decoder
; Very verbose prints from the core...
; build_flags = -DCORE_DEBUG_LEVEL=6
; https debugging
; build_flags = -DHTTPS_LOGLEVEL=4
; NimBLE debugging
; build_flags = -DCONFIG_NIMBLE_CPP_DEBUG_LEVEL=4
[use_debugger]
debug_tool = minimodule
upload_protocol = minimodule
;
; per-processor options for variants of iotsa. Extends common options.
;
[esp8266]
extends = common
platform = espressif8266
[esp32_allvariants]
extends = common
platform = espressif32
lib_deps =
${common.lib_deps}
https://github.com/jackjansen/esp32_https_server#exp-jack-sha-header
https://github.com/jackjansen/esp32_https_server_compat#exp-jack-sha-header
h2zero/NimBLE-Arduino
# madhephaestus/ESP32Encoder
https://github.com/jackjansen/ESP32Encoder#exp-jack-esp32c3
lib_ignore =
ESP32 BLE Arduino
[esp32]
extends = esp32_allvariants
lib_deps =
${esp32_allvariants.lib_deps}
[esp32c3]
extends = esp32_allvariants
# This enables the builtin esp32c3 serial-over-usb hardware to be used as Serial.
build_flags = -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1
[esp32_nonimble]
extends = esp32
lib_deps =
${common.lib_deps}
https://github.com/jackjansen/esp32_https_server_compat#exp-jack-sha-header
ESP32 BLE Arduino
lib_ignore =
h2zero/NimBLE-Arduino
;
; per-board options for variants of iotsa. Extends per-processor options.
;
[nodemcuv2]
extends = esp8266
board = nodemcuv2
[esp8285]
extends = esp8266
board = esp8285
[esp32thing]
extends = esp32
board = esp32thing
[esp32dev]
extends = esp32
board = esp32dev
[lolin32]
extends = esp32
board = lolin32
board_build.partitions = no_ota.csv ; BLE stack takes up a lot of space
[pico32]
extends = esp32
board = pico32
[esp32c3devkit]
extends = esp32c3
board = esp32-c3-devkitm-1
build_flags = -DESP32C3
[example-hello]
build_src_filter = +<*> +<../examples/Hello>
[env:nodemcuv2-example-hello]
extends = nodemcuv2, example-hello
[env:esp32thing-example-hello]
extends = esp32thing, example-hello
[env:lolin32-example-hello]
extends = lolin32, example-hello
[env:esp32c3devkit-example-hello]
extends = esp32c3devkit, example-hello
[example-HelloRights]
build_src_filter = +<*> +<../examples/HelloRights>
[env:nodemcuv2-example-HelloRights]
extends = nodemcuv2, example-HelloRights
[env:esp32thing-example-HelloRights]
extends = esp32thing, example-HelloRights
[example-HelloToken]
build_src_filter = +<*> +<../examples/HelloToken>
[env:nodemcuv2-example-HelloToken]
extends = nodemcuv2, example-HelloToken
[env:esp32thing-example-HelloToken]
extends = esp32thing, example-HelloToken
[example-input]
build_src_filter = +<*> +<../examples/Input>
build_flags = -DIOTSA_WITH_HTTPS -DIOTSA_WITH_COAP
[env:lolin32-example-input]
extends = lolin32, example-input
build_flags = ${example-input.build_flags}
[env:esp32c3devkit-example-input]
extends = esp32c3devkit, example-input
build_flags = ${example-input.build_flags}
[env:nodemcuv2-example-input]
extends = nodemcuv2, example-input
build_flags = ${example-input.build_flags}
[example-skeleton]
build_src_filter = +<*> +<../examples/Skeleton>
build_flags = -DXXXJACK_TEST=42
[env:nodemcuv2-example-skeleton]
extends = nodemcuv2, example-skeleton
build_flags = -DWITH_NTP ${example-skeleton.build_flags}
[env:esp8285-example-skeleton]
extends = esp8285, example-skeleton
build_flags = -DIOTSA_WITH_COAP
[env:esp32thing-example-skeleton]
extends = esp32thing, example-skeleton
build_flags = -DIOTSA_WITH_BLE ${example-skeleton.build_flags}
board_build.partitions = min_spiffs.csv
[env:pico32-example-skeleton]
extends = pico32, example-skeleton
build_flags = -DWITH_NTP ${example-skeleton.build_flags}
board_build.partitions = min_spiffs.csv
[env:lolin32-example-skeleton-http]
extends = lolin32, example-skeleton
build_flags =
[env:lolin32-example-skeleton]
extends = lolin32, example-skeleton
; build_flags = -DXXXJACK_TEST=42
[example-datetime]
build_src_filter = +<*> +<../examples/DateTime>
build_flags = ; -DIOTSA_WITH_HTTPS -DIOTSA_WITH_COAP
[env:pico32-example-datetime]
extends = pico32, example-datetime
build_flags = ${example-datetime.build_flags}
board_build.partitions = min_spiffs.csv
[env:nodemcuv2-example-datetime]
extends = nodemcuv2, example-datetime
build_flags = -DWITH_NTP ${example-datetime.build_flags}
[example-bleled]
build_src_filter = +<*> +<../examples/BLELed>
; board_build.partitions = no_ota.csv
board_build.partitions = min_spiffs.csv
[env:nodemcuv2-example-bleled]
extends = nodemcuv2, example-bleled
[env:nodemcuv2-example-bleled-nowifi]
extends = nodemcuv2, example-bleled
build_flags = -DIOTSA_WITHOUT_WIFI -DIOTSA_WITHOUT_HTTP -DIOTSA_WITHOUT_WEB -DIOTSA_WITHOUT_API -DIOTSA_WITHOUT_REST -DIOTSA_WITHOUT_COAP
[env:esp32thing-example-bleled]
extends = esp32thing, example-bleled
build_flags = -DIOTSA_WITH_BLE
[env:esp32dev-example-bleled]
extends = esp32dev, example-bleled
build_flags = -DIOTSA_WITH_BLE
[env:esp32c3devkit-example-bleled]
extends = esp32c3devkit, example-bleled
build_flags = -DIOTSA_BLE_DEBUG -DIOTSA_WITH_BLE -DNEOPIXEL_PIN=2 -DWITHOUT_VOLTAGE ${esp32c3devkit.build_flags}
[env:esp32thing-example-nonimbleled]
extends = esp32thing, example-bleled
build_flags = -DIOTSA_WITH_BLE -DIOTSA_WITHOUT_NIMBLE
lib_deps =
${esp32thing.lib_deps}
ESP32 BLE Arduino
lib_ignore =
h2zero/NimBLE-Arduino
[env:esp32thing-example-bleled-nowifi]
extends = esp32thing, example-bleled
build_flags = -DIOTSA_WITHOUT_WIFI -DIOTSA_WITHOUT_HTTP -DIOTSA_WITHOUT_HTTPS -DIOTSA_WITHOUT_WEB -DIOTSA_WITHOUT_API -DIOTSA_WITHOUT_REST -DIOTSA_WITHOUT_COAP
[env:lolin32-example-bleled]
extends = lolin32, example-bleled
; gpio15 on lolin32 can be used for minimodule debugging, so don't use it for LED.
build_flags = -DNEOPIXEL_PIN=16 -DIOTSA_WITHOUT_HTTPS -DIOTSA_WITH_BLE -DIOTSA_BLE_DEBUG
[env:lolin32-example-bleled-coap]
extends = lolin32, example-bleled
; gpio15 on lolin32 can be used for minimodule debugging, so don't use it for LED.
build_flags = -DNEOPIXEL_PIN=16 -DIOTSA_WITHOUT_HTTPS -DIOTSA_WITHOUT_REST -DIOTSA_WITH_BLE -DIOTSA_WITH_COAP -DCOAP_BUF_MAX_SIZE=1500
[env:lolin32-example-bleled-nowifi]
extends = lolin32, example-bleled
build_flags = -DIOTSA_WITHOUT_WIFI -DIOTSA_WITHOUT_HTTP -DIOTSA_WITHOUT_HTTPS -DIOTSA_WITHOUT_WEB -DIOTSA_WITHOUT_API -DIOTSA_WITHOUT_REST -DIOTSA_WITHOUT_COAP
[env:lolin32-example-bleled-hps-coap]
extends = lolin32, example-bleled
build_flags = -DIOTSA_WITH_BLE -DIOTSA_WITH_COAP -DIOTSA_BLE_DEBUG
[env:example-led]
build_src_filter = +<*> +<../examples/Led>
[env:lolin32-example-led]
extends = lolin32, example-led
build_flags = -DHTTPS_LOGLEVEL=4