-
Notifications
You must be signed in to change notification settings - Fork 3
/
platformio.ini
83 lines (76 loc) · 2.08 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
; 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 = prod-replicaType-1
; Copy and rename "custom_envs.example.ini" to "custom_envs.ini" to add your custom settings (this file is ignored by git)
extra_configs =
custom_envs.ini
[common]
platform = espressif32
framework = arduino
extra_scripts =
pre:build_ui.py
monitor_speed = 115200
upload_protocol = espota
upload_port = openmosfet.local
build_flags =
-D OM_FIRMWARE_VERSION='"1.11.0-beta"'
-D ARDUINOJSON_DECODE_UNICODE=0
-D OM_ESP_NOW_SERVER_ASYNC=1
-D OM_ESPNOW_SERVER_ASYNC_TASK_PRIORITY=2
[production]
extends = common
board = esp32doit-devkit-v1
build_type = release
extra_scripts =
${common.extra_scripts}
pre:rename_binaries.py
build_flags =
${common.build_flags}
-D OM_PLATFORM=${common.platform}
-DCORE_DEBUG_LEVEL=0
lib_deps =
thomasfredericks/Bounce2 @ ^2.55
bblanchon/ArduinoJson @ ^6.17.2
me-no-dev/ESP Async WebServer @ ^1.2.3
me-no-dev/ESPAsyncTCP @ ^1.2.2
https://github.com/openairsoft/openmosfet_esp-now
[dev]
extends = common
build_type = debug
extra_scripts =
pre:build_ui_dev.py
build_flags =
${common.build_flags}
-D OM_PLATFORM=${common.platform}
-D REPLICA_TYPE=2
-D DEBUG
lib_deps =
https://github.com/thomasfredericks/Bounce2.git
https://github.com/bblanchon/ArduinoJson.git
https://github.com/me-no-dev/ESPAsyncWebServer.git
https://github.com/me-no-dev/AsyncTCP.git
https://github.com/openairsoft/openmosfet_esp-now
[env:prod-replicaType-1]
extends = production
build_flags =
${production.build_flags}
-D REPLICA_TYPE=1
[env:prod-replicaType-2]
extends = production
build_flags =
${production.build_flags}
-D REPLICA_TYPE=2
[env:prod-replicaType-3]
extends = production
build_flags =
${production.build_flags}
-D REPLICA_TYPE=3
-D OM_DEFAULT_SELECTOR_PIN=33