forked from ESPresense/ESPresense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
268 lines (251 loc) · 6.73 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
; 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]
default_envs = esp32
[common]
debug_build_flags = -O0 -ggdb3 -g3 -DDEBUG_TLS_MEM
build_flags =
-D MQTT_MIN_FREE_MEMORY=8128
-D SECURE_CLIENT=SECURE_CLIENT_BEARSSL
-D BEARSSL_SSL_BASIC
-D CONFIG_BT_NIMBLE_PINNED_TO_CORE=1
-D CONFIG_BT_NIMBLE_MAX_BONDS=0
-D CONFIG_BT_NIMBLE_MAX_CCCDS=0
-D CONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED
-D CONFIG_BT_NIMBLE_ROLE_BROADCASTER_DISABLED
-D CONFIG_ASYNC_TCP_USE_WDT=0
platform = [email protected]
framework = arduino
lib_deps =
haimoz/SoftFilters@^0.1.0
marvinroger/AsyncMqttClient@^0.9.0
bblanchon/ArduinoJson@^6.19.3
https://github.com/ESPresense/ESP-WiFiSettings.git
https://github.com/ESPresense/NimBLE-Arduino.git
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
bbx10/DNSServer@^1.1.0
[common_sensors]
lib_deps =
adafruit/Adafruit Unified Sensor @ ^1.1.4
beegee-tokyo/DHT sensor library for ESPx @ ^1.18
starmbi/hp_BH1750 @ ^1.0.0
adafruit/Adafruit BME280 Library@^2.2.2
adafruit/Adafruit TSL2561@^1.1.0
[env:debug]
build_type=debug
platform = ${common.platform}
framework = ${common.framework}
board = esp-wrover-kit
debug_tool = esp-prog
debug_init_break=tbreak abort
upload_protocol = esp-prog
lib_deps = ${common.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_port = /dev/cu.usbserial-*1
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, time
debug_build_flags = ${common.debug_build_flags}
build_flags = ${common.build_flags}
[env:esp32]
platform = ${common.platform}
framework = ${common.framework}
board = esp32dev
lib_deps = ${common.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
upload_speed = 1500000
monitor_filters = esp32_exception_decoder
build_flags =
-D FIRMWARE='"esp32"'
${common.build_flags}
[env:adafruit-huzzah32]
platform = ${common.platform}
framework = ${common.framework}
board = esp32dev
lib_deps = ${common.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
build_flags =
-D FIRMWARE='"adafruit-huzzah32"'
-D HUZZAH32
${common.build_flags}
[env:esp32-verbose]
platform = ${common.platform}
framework = ${common.framework}
board = esp32dev
lib_deps = ${common.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
upload_speed = 1500000
monitor_filters = esp32_exception_decoder
build_flags =
-D CORE_DEBUG_LEVEL=2
-D FIRMWARE='"esp32-verbose"'
-D VERBOSE
${common.build_flags}
[env:m5stickc]
platform = ${common.platform}
framework = ${common.framework}
board = m5stick-c
lib_deps =
m5stack/M5StickC@^0.2.0
https://github.com/ESPresense/M5StickC-TB_Display.git
${common.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
build_flags =
-D M5STICK
-D FIRMWARE='"m5stickc"'
${common.build_flags}
[env:m5stickc-plus]
platform = ${common.platform}
framework = ${common.framework}
board = m5stick-c
lib_deps =
m5stack/M5StickCPlus@^0.0.2
https://github.com/ESPresense/M5StickC-TB_Display.git
${common.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
build_flags =
-D M5STICK
-D PLUS
-D FIRMWARE='"m5stickc-plus"'
${common.build_flags}
[env:m5atom-matrix]
platform = ${common.platform}
framework = ${common.framework}
board = m5stack-atom
lib_deps =
fastled/FastLED@^3.4.0
m5stack/m5atom@^0.0.5
${common.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
build_flags =
-D M5ATOM
-D MATRIX
-D FIRMWARE='"m5atom-matrix"'
${common.build_flags}
[env:macchina-a0]
platform = ${common.platform}
framework = ${common.framework}
board = esp32dev
lib_deps = ${common.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
build_flags =
-D MACCHINA_A0
-D FIRMWARE='"macchina-a0"'
${common.build_flags}
[env:esp32-sensors]
platform = ${common.platform}
framework = ${common.framework}
board = esp32dev
lib_deps =
${common.lib_deps}
${common_sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
upload_speed = 115200
monitor_filters = esp32_exception_decoder
build_flags =
-D FIRMWARE='"esp32-sensors"'
-D SENSORS
${common.build_flags}
[env:adafruit-huzzah32-sensors]
platform = ${common.platform}
framework = ${common.framework}
board = esp32dev
lib_deps =
${common.lib_deps}
${common_sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
build_flags =
-D FIRMWARE='"adafruit-huzzah32-sensors"'
-D HUZZAH32
-D SENSORS
${common.build_flags}
[env:esp32-verbose-sensors]
platform = ${common.platform}
framework = ${common.framework}
board = esp32dev
lib_deps =
${common.lib_deps}
${common_sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
upload_speed = 1500000
monitor_filters = esp32_exception_decoder
build_flags =
-D CORE_DEBUG_LEVEL=2
-D FIRMWARE='"esp32-verbose-sensors"'
-D VERBOSE
-D SENSORS
${common.build_flags}
[env:m5stickc-sensors]
platform = ${common.platform}
framework = ${common.framework}
board = m5stick-c
lib_deps =
m5stack/M5StickC@^0.2.0
https://github.com/ESPresense/M5StickC-TB_Display.git
${common.lib_deps}
${common_sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
build_flags =
-D M5STICK
-D FIRMWARE='"m5stickc-sensors"'
-D SENSORS
${common.build_flags}
[env:m5stickc-plus-sensors]
platform = ${common.platform}
framework = ${common.framework}
board = m5stick-c
lib_deps =
m5stack/M5StickCPlus@^0.0.2
https://github.com/ESPresense/M5StickC-TB_Display.git
${common.lib_deps}
${common_sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
build_flags =
-D M5STICK
-D PLUS
-D FIRMWARE='"m5stickc-plus-sensors"'
-D SENSORS
${common.build_flags}
[env:m5atom-matrix-sensors]
platform = ${common.platform}
framework = ${common.framework}
board = m5stack-atom
lib_deps =
fastled/FastLED@^3.4.0
m5stack/m5atom@^0.0.5
${common.lib_deps}
${common_sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
build_flags =
-D M5ATOM
-D MATRIX
-D FIRMWARE='"m5atom-matrix-sensors"'
-D SENSORS
${common.build_flags}