-
Notifications
You must be signed in to change notification settings - Fork 4
/
platformio.ini
201 lines (192 loc) · 6.06 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
; 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]
lib_dir = lib
include_dir = lib
[common_env_data]
upload_speed = 921600
monitor_speed = 115200
platform = espressif8266 @ 4.2.1
platform32 = espressif32 @ 6.6.0
framework = arduino
build_unflags =
build_flags =
-D BAUD=${common_env_data.monitor_speed}
-D USE_LITTLEFS=true
-D CFG_APPVER="\"1.0.0\""
#-D PERF_ENABLE
-D PERF_INFLUX_TARGET=\""\""
-D PERF_INFLUX_BUCKET=\""\""
-D PERF_INFLUX_ORG=\""\""
-D PERF_INFLUX_TOKEN=\""\""
#-D CFG_GITREV=\""beta-3\""
#-D ENABLE_REMOTE_UI_DEVELOPMENT
!python script/git_rev.py
lib_deps =
https://github.com/mp-se/SimpleKalmanFilter#v0.2
https://github.com/mp-se/Statistic#1.0.5
https://github.com/mp-se/esp8266-oled-ssd1306#4.4.0
https://github.com/mp-se/DHT-sensor-library#1.4.4
https://github.com/mp-se/Adafruit_Sensor#1.1.11
https://github.com/mp-se/incbin#v1.0.0
#https://github.com/mp-se/Arduino-Log#1.1.1
https://github.com/mp-se/Arduino-Log#1.1.2
https://github.com/mp-se/ArduinoJson#v6.21.3
https://github.com/mp-se/arduino-mqtt#v2.5.1
https://github.com/mp-se/tinyexpr#v1.0.0
https://github.com/mp-se/NAU7802_Arduino_Library#v1.0.4
https://github.com/mp-se/LiquidCrystal_I2C#1.0.0
https://github.com/mp-se/espframework#1.0.6
https://github.com/mp-se/Adafruit_BME280_Library#2.2.3
https://github.com/mp-se/OneWireNg#0.13.3
html_files =
html/index.html
html/app.js.gz
html/app.css.gz
html/favicon.ico.gz
[env:kegmon-release]
upload_speed = ${common_env_data.upload_speed}
monitor_speed = ${common_env_data.monitor_speed}
framework = ${common_env_data.framework}
platform = ${common_env_data.platform}
extra_scripts =
script/copy_firmware.py
build_unflags = ${common_env_data.build_unflags}
build_flags =
${common_env_data.build_flags}
-D LOG_LEVEL=5
lib_deps =
https://github.com/mp-se/ESPAsyncWebServer#0.1.0
https://github.com/mp-se/ESPAsyncTCP#0.1.0
${common_env_data.lib_deps}
board = d1_mini
build_type = release
board_build.filesystem = littlefs
monitor_filters = esp8266_exception_decoder
[env:kegmon-simulator]
upload_speed = ${common_env_data.upload_speed}
monitor_speed = ${common_env_data.monitor_speed}
framework = ${common_env_data.framework}
platform = ${common_env_data.platform}
build_unflags = ${common_env_data.build_unflags}
build_flags =
${common_env_data.build_flags}
-D LOG_LEVEL=5
lib_deps =
https://github.com/mp-se/ESPAsyncWebServer#0.1.0
https://github.com/mp-se/ESPAsyncTCP#0.1.0
${common_env_data.lib_deps}
board = d1_mini
build_type = release
board_build.filesystem = littlefs
build_src_filter = +<*> -<main.cpp> +<../raw/*.cpp>
[env:kegmon-hardware]
upload_speed = ${common_env_data.upload_speed}
monitor_speed = ${common_env_data.monitor_speed}
framework = ${common_env_data.framework}
platform = ${common_env_data.platform}
build_unflags = ${common_env_data.build_unflags}
build_flags =
${common_env_data.build_flags}
-D LOG_LEVEL=6
lib_deps =
https://github.com/mp-se/ESPAsyncWebServer#0.1.0
https://github.com/mp-se/ESPAsyncTCP#0.1.0
${common_env_data.lib_deps}
board = d1_mini
build_type = release
board_build.filesystem = littlefs
build_src_filter = +<*> -<main.cpp> +<../hw/*.cpp>
[env:kegmon-unit]
upload_speed = ${common_env_data.upload_speed}
monitor_speed = ${common_env_data.monitor_speed}
framework = ${common_env_data.framework}
platform = ${common_env_data.platform}
build_unflags = ${common_env_data.build_unflags}
build_flags =
${common_env_data.build_flags}
-D LOG_LEVEL=6
lib_deps =
https://github.com/mp-se/ESPAsyncWebServer#0.1.0
https://github.com/mp-se/ESPAsyncTCP#0.1.0
https://github.com/bxparks/AUnit#v1.7.1
${common_env_data.lib_deps}
board = d1_mini
build_type = release
board_build.filesystem = littlefs
build_src_filter = +<*> -<main.cpp> +<../test/tests*.cpp>
[env:kegmon32s2-release]
platform = ${common_env_data.platform32}
framework = arduino
board = lolin_s2_mini
upload_speed = ${common_env_data.upload_speed}
monitor_speed = ${common_env_data.monitor_speed}
build_unflags = ${common_env_data.build_unflags}
extra_scripts =
script/copy_firmware.py
build_flags =
-D ESP32S2
-D LOG_LEVEL=5
#-D CORE_DEBUG_LEVEL=5
#-D USE_SERIAL_PINS
${common_env_data.build_flags}
lib_deps =
https://github.com/mp-se/ESPAsyncWebServer#0.1.0
https://github.com/mp-se/AsyncTCP#0.1.0
${common_env_data.lib_deps}
build_type = release
board_build.partitions = part32.csv
#board_build.partitions = part32_coredump.csv
board_build.embed_txtfiles =${common_env_data.html_files}
[env:kegmon32s2-debug]
platform = ${common_env_data.platform32}
framework = arduino
board = esp32-s2-kaluga-1
upload_speed = ${common_env_data.upload_speed}
monitor_speed = ${common_env_data.monitor_speed}
build_unflags = ${common_env_data.build_unflags}
extra_scripts =
debug_tool = esp-prog
build_flags =
-D ESP32S2
-D LOG_LEVEL=5
-D CORE_DEBUG_LEVEL=5
#-D USE_SERIAL_PINS
${common_env_data.build_flags}
lib_deps =
https://github.com/mp-se/ESPAsyncWebServer#0.1.0
https://github.com/mp-se/AsyncTCP#0.1.0
${common_env_data.lib_deps}
build_type = debug
board_build.partitions = part32_coredump.csv
board_build.embed_txtfiles =${common_env_data.html_files}
[env:kegmon32s3-release]
platform = ${common_env_data.platform32}
framework = arduino
board = lolin_s3_mini
upload_speed = ${common_env_data.upload_speed}
monitor_speed = ${common_env_data.monitor_speed}
build_unflags = ${common_env_data.build_unflags}
extra_scripts =
script/copy_firmware.py
build_flags =
-D ESP32S3
-D LOG_LEVEL=5
#-D CORE_DEBUG_LEVEL=5
#-D USE_SERIAL_PINS
-D ARDUINO_USB_CDC_ON_BOOT=1
${common_env_data.build_flags}
lib_deps =
https://github.com/mp-se/ESPAsyncWebServer#0.1.0
https://github.com/mp-se/AsyncTCP#0.1.0
${common_env_data.lib_deps}
build_type = release
board_build.partitions = part32_coredump.csv
board_build.embed_txtfiles =${common_env_data.html_files}