-
Notifications
You must be signed in to change notification settings - Fork 83
/
platformio.ini
218 lines (160 loc) · 5.4 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
; PlatformIO Project Configuration File
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
; Change the default environment to match your board. Valid options are:
; - arduino_esp32
; - pioarduino_esp32
; - espidf_esp32
; - pioarduino_esp32c3
; - espidf_esp32c3
; - shesp32
; - halmet
; - halser
default_envs = pioarduino_esp32
[env]
; Options common for all working environments
;; Uncomment and change these if PlatformIO can't auto-detect the ports
;monitor_port = /dev/tty.usbserial-310
;upload_port = /dev/tty.usbserial-310
upload_speed = 2000000
monitor_speed = 115200
lib_deps =
mairas/ReactESP @ ^3.2.0
bblanchon/ArduinoJson @ ^7.0.0
pfeerick/elapsedMillis @ ^1.0.6
bxparks/AceButton @ ^1.10.1
fastled/FastLED @ ^3.9.4
; Add any additional dependencies here
;ttlappalainen/NMEA2000-library
;NMEA2000_twai=https://github.com/skarlsson/NMEA2000_twai
build_flags =
; Max (and default) debugging level in Arduino ESP32 Core
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
; Use the ESP-IDF logging library - required by SensESP.
-D USE_ESP_IDF_LOG
; This line defines the partition table to use. "min_spiffs" has two app
; partitions, one for OTA updates and one for the running app, but the
; SPIFFS filesystem is quite small. For 8 MB flash boards such as HALMET,
; you can use "default_8MB.csv" instead.
board_build.partitions = min_spiffs.csv
;; Uncomment the following lines to use Over-the-air (OTA) Updates
;upload_protocol = espota
;upload_port = IP_ADDRESS_OF_ESP_HERE
;upload_flags =
; --auth=YOUR_OTA_PASSWORD
; You shouldn't need to touch the settings in this section below this line.
build_unflags =
-Werror=reorder
monitor_filters = esp32_exception_decoder
test_build_src = true
check_tool = clangtidy
check_flags =
clangtidy: --fix --format-style=file --config-file=.clang-tidy
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Platform configurations follow
[arduino]
platform = espressif32 @ ^6.9.0
framework = arduino
lib_ignore =
esp_websocket_client
build_flags =
${env.build_flags}
; Arduino Core bug workaround: define the log tag for the Arduino
; logging macros.
-D TAG='"Arduino"'
[pioarduino]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
framework = arduino
; The library.json format doesn't support dependencies conditional on the
; platform version, so we have to use the lib_deps option to specify the
; esp_websocket_client library only for the ESP-IDF framework.
lib_deps =
${env.lib_deps}
esp_websocket_client=https://components.espressif.com/api/downloads/?object_type=component&object_id=dbc87006-9a4b-45e6-a6ab-b286174cb413
build_flags =
${env.build_flags}
[espidf]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
framework = espidf, arduino
board_build.embed_txtfiles =
managed_components/espressif__esp_insights/server_certs/https_server.crt
managed_components/espressif__esp_rainmaker/server_certs/rmaker_mqtt_server.crt
managed_components/espressif__esp_rainmaker/server_certs/rmaker_claim_service_server.crt
managed_components/espressif__esp_rainmaker/server_certs/rmaker_ota_server.crt
; The library.json format doesn't support dependencies conditional on the
; platform version, so we have to use the lib_deps option to specify the
; esp_websocket_client library only for the ESP-IDF framework.
lib_deps =
${env.lib_deps}
esp_websocket_client=https://components.espressif.com/api/downloads/?object_type=component&object_id=dbc87006-9a4b-45e6-a6ab-b286174cb413
build_flags =
${env.build_flags}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Board configurations follow
[esp32]
board = esp32dev
build_flags =
${env.build_flags}
-D BUTTON_BUILTIN=0
-D LED_BUILTIN=2
[esp32c3]
board = esp32-c3-devkitm-1
build_flags =
${env.build_flags}
-D SENSESP_BUTTON_PIN=9
-D PIN_RGB_LED=8
; Use the CDC USB port as Serial
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Permutations of platform and device.
[env:arduino_esp32]
extends = arduino, esp32
build_flags =
${arduino.build_flags}
${esp32.build_flags}
[env:pioarduino_esp32]
extends = pioarduino, esp32
build_flags =
${pioarduino.build_flags}
${esp32.build_flags}
[env:espidf_esp32]
extends = espidf, esp32
build_flags =
${espidf.build_flags}
${esp32.build_flags}
[env:arduino_esp32c3]
extends = arduino, esp32c3
build_flags =
${arduino.build_flags}
${esp32c3.build_flags}
[env:pioarduino_esp32c3]
extends = pioarduino, esp32c3
build_flags =
${pioarduino.build_flags}
${esp32c3.build_flags}
[env:espidf_esp32c3]
extends = espidf, esp32c3
build_flags =
${espidf.build_flags}
${esp32c3.build_flags}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Individual board configurations
[env:shesp32]
extends = pioarduino, esp32
build_flags =
${pioarduino.build_flags}
${esp32.build_flags}
[env:halmet]
extends = pioarduino, esp32
board_build.partitions = default_8MB.csv
build_flags =
${pioarduino.build_flags}
${esp32.build_flags}
[env:halser]
extends = pioarduino, esp32c3
build_flags =
${pioarduino.build_flags}
${esp32c3.build_flags}