forked from ESPresense/ESPresense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
238 lines (223 loc) · 6.28 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
; 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
build_cache_dir = ~/.buildcache
extra_configs = platformio_override.ini
[env]
lib_compat_mode = strict
[common]
debug_build_flags = -O0 -ggdb3 -g3 -DDEBUG_TLS_MEM
build_flags =
-D CONFIG_BT_NIMBLE_TASK_STACK_SIZE=4096
-D SCAN_TASK_STACK_SIZE=2096
-D REPORT_TASK_STACK_SIZE=3277
-D MQTT_MIN_FREE_MEMORY=8128
-D CONFIG_ASYNC_TCP_USE_WDT=0
-D CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT=20
-D BLE_GATTC_UNRESPONSIVE_TIMEOUT_MS=2000
build_unflags =
framework = arduino
lib_deps =
AsyncTCP = https://github.com/pbolduc/AsyncTCP.git@^1.2.0
https://github.com/ESPresense/ESPAsyncWebServer.git
https://github.com/ESPresense/AsyncWiFiSettings.git#1.0.6
https://github.com/ESPresense/SoftFilters.git
https://github.com/ESPresense/NimBLE-Arduino.git
marvinroger/AsyncMqttClient@^0.9.0
bblanchon/ArduinoJson@^6.19.3
kitesurfer1404/WS2812FX@^1.4.1
[esp32]
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.4/platform-espressif32-2.0.4.zip
platform_packages =
framework = ${common.framework}
build_unflags = ${common.build_unflags}
build_flags = -g
-D ARDUINO_ARCH_ESP32
-D CONFIG_BT_NIMBLE_PINNED_TO_CORE=1
-D REPORT_PINNED_TO_CORE=1
-D CONFIG_USE_ETHERNET
${common.build_flags}
lib_deps = ${common.lib_deps}
[esp32c3]
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.4/platform-espressif32-2.0.4.zip
platform_packages =
framework = ${common.framework}
build_unflags = ${common.build_unflags}
build_flags = -g
-D ARDUINO_ARCH_ESP32
-D ARDUINO_ARCH_ESP32C3
-D CONFIG_IDF_TARGET_ESP32C3
-D CO
-D CONFIG_BT_NIMBLE_PINNED_TO_CORE=0
-D REPORT_PINNED_TO_CORE=0
${common.build_flags}
lib_deps = ${common.lib_deps}
[sensors]
lib_deps =
adafruit/Adafruit Unified Sensor@^1.1.4
adafruit/Adafruit BME280 Library@^2.2.2
adafruit/Adafruit BMP085 Library@^1.2.1
adafruit/Adafruit BMP280 Library@^2.6.3
adafruit/Adafruit SHT31 Library@^2.2.0
adafruit/Adafruit TSL2561@^1.1.0
starmbi/hp_BH1750@^1.0.0
beegee-tokyo/DHT sensor library for ESPx@^1.18
sparkfun/SparkFun SGP30 Arduino Library@^1.0.5
adafruit/Adafruit SGP40 Sensor@^1.1.0
robtillaart/SHT2x@^0.1.3
[env:esp32]
platform = ${esp32.platform}
platform_packages = ${esp32.platform_packages}
framework = ${esp32.framework}
board = esp32dev
lib_deps =
${esp32.lib_deps}
${sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
upload_speed = 1500000
monitor_filters = esp32_exception_decoder, time
build_unflags = ${esp32.build_unflags}
build_flags =
-D FIRMWARE='"esp32"'
-D SENSORS
${esp32.build_flags}
[env:esp32c3]
platform = ${esp32c3.platform}
platform_packages = ${esp32c3.platform_packages}
framework = ${esp32c3.framework}
board = esp32-c3-devkitm-1
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
upload_speed = 1500000
monitor_filters = esp32_exception_decoder, time
lib_deps =
${esp32c3.lib_deps}
${sensors.lib_deps}
build_unflags = ${esp32c3.build_unflags}
build_flags =
-D FIRMWARE='"esp32c3"'
-D SENSORS
-D ESP32C3
${esp32c3.build_flags}
[env:esp32-verbose]
platform = ${esp32.platform}
platform_packages = ${esp32.platform_packages}
framework = ${esp32.framework}
board = esp32dev
lib_deps =
${esp32.lib_deps}
${sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
upload_speed = 1500000
monitor_filters = esp32_exception_decoder, time
build_unflags = ${esp32.build_unflags}
build_flags =
-D CORE_DEBUG_LEVEL=2
-D FIRMWARE='"esp32-verbose"'
-D VERBOSE
-D SENSORS
${esp32.build_flags}
[env:esp32c3-verbose]
platform = ${esp32c3.platform}
platform_packages = ${esp32c3.platform_packages}
framework = ${esp32c3.framework}
board = esp32-c3-devkitm-1
lib_deps =
${esp32.lib_deps}
${sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
upload_speed = 1500000
monitor_filters = esp32_exception_decoder, time
build_unflags = ${esp32c3.build_unflags}
build_flags =
-D CORE_DEBUG_LEVEL=2
-D FIRMWARE='"esp32c3-verbose"'
-D VERBOSE
-D SENSORS
${esp32c3.build_flags}
[env:m5stickc]
platform = ${esp32.platform}
platform_packages = ${esp32.platform_packages}
framework = ${esp32.framework}
board = m5stick-c
lib_deps =
https://github.com/ESPresense/TFT_eSPI.git
https://github.com/ESPresense/TB_Display.git
${esp32.lib_deps}
${sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, time
build_unflags = ${esp32.build_unflags}
build_flags =
-D TFT_FONT=1
-D M5STICK
-D FIRMWARE='"m5stickc"'
-D SENSORS
${esp32.build_flags}
[env:m5stickc-plus]
platform = ${esp32.platform}
platform_packages = ${esp32.platform_packages}
framework = ${esp32.framework}
board = m5stick-c
lib_deps =
https://github.com/ESPresense/TFT_eSPI.git
https://github.com/ESPresense/TB_Display.git
${esp32.lib_deps}
${sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, time
build_unflags = ${esp32.build_unflags}
build_flags =
-D TFT_FONT=2
-D M5STICK
-D PLUS
-D FIRMWARE='"m5stickc-plus"'
-D SENSORS
${esp32.build_flags}
[env:m5atom]
platform = ${esp32.platform}
platform_packages = ${esp32.platform_packages}
framework = ${esp32.framework}
board = m5stack-atom
lib_deps =
${esp32.lib_deps}
${sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, time
build_unflags = ${esp32.build_unflags}
build_flags =
-D M5ATOM
-D MATRIX
-D FIRMWARE='"m5atom"'
-D SENSORS
${esp32.build_flags}
[env:macchina-a0]
platform = ${esp32.platform}
platform_packages = ${esp32.platform_packages}
framework = ${esp32.framework}
board = esp32dev
lib_deps =
${esp32.lib_deps}
${sensors.lib_deps}
board_build.partitions = partitions_singleapp.csv
monitor_speed = 115200
build_unflags = ${esp32.build_unflags}
build_flags =
-D MACCHINA_A0
-D FIRMWARE='"macchina-a0"'
-D SENSORS
${esp32.build_flags}