-
Notifications
You must be signed in to change notification settings - Fork 2
/
platformio.ini
131 lines (113 loc) · 3.66 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
; 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]
src_dir = src
test_dir = test
default_envs = WEMOS_D1_Mini, ESP8266-ESP01, ESP32DEV, WEMOS_D1_Mini-SPIFFS, ESP8266-ESP01-SPIFFS, ESP32DEV-SPIFFS
[env]
extra_scripts =
pre:scripts/platformio/set_output_filename.py
pre:scripts/platformio/set_dependencies.py
check_tool = clangtidy, cppcheck
check_flags =
clangtidy: --checks '-*,bugprone-*,clang-analyzer-*,misc-*,performance-*,portability-*,readability-*,-readability-magic-numbers,-readability-static-accessed-through-instance,-readability-misplaced-array-index,google-*'
cppcheck: --enable=all --disable=unusedFunction --inline-suppr --std=c++20 --suppress=*:*/.pio/* --suppress=unmatchedSuppression:*/.pio/*
check_skip_packages = no
check_src_filters = +<src/*> +<lib/*>
platform_packages =
platformio/[email protected]
platformio/tool-cppcheck@^1.21100.230717
[env:test-native]
platform = native
build_type = test
test_framework = doctest
lib_deps =
bblanchon/ArduinoJson @ ^7.0.2
build_flags = -std=gnu++17 -I ${platformio.test_dir}/helpers
debug_test = test_template
;
; Build settings shared across all targets. These are appended to or overridden by the target-specific settings.
;
[common]
build_flags =
-Wall
-DENABLE_LOGGING
!python scripts/platformio/set_env.py
build_src_flags =
!echo "-D LANGUAGE=${LANGUAGE:-en-us}"
!echo "-I src/frontend/${LANGUAGE:-en-us}"
lib_deps =
bblanchon/ArduinoJson @ ^7.0.2
knolleary/PubSubClient @ ^2.8
floatplane/Ministache @ ^1.0.0
swicago/HeatPump@^1.0.0
https://github.com/kpfleming/arduino-timer-cpp17.git
https://github.com/AlexIII/incbin-arduino
;
; Build settings shared across all ESP8266 targets. These are appended to or overridden by the target-specific settings.
;
[espressif8266]
platform = espressif8266
framework = arduino
extends = common
lib_deps =
${common.lib_deps}
me-no-dev/ESP Async [email protected]
;
; Build settings shared across all ESP32 targets. These are appended to or overridden by the target-specific settings.
;
[espressif32]
platform = espressif32
framework = arduino
extends = common
build_unflags = -std=gnu++11
build_flags =
${common.build_flags}
-std=gnu++17
-D CORE_DEBUG_LEVEL=0
lib_deps =
${common.lib_deps}
; latest master required for ESP32 because released version causes linker failures
; https://github.com/me-no-dev/ESPAsyncWebServer/pull/999
https://github.com/me-no-dev/ESPAsyncWebServer.git
;
; ESP8266 targets
;
[env:ESP8266-ESP01]
extends = espressif8266
board = esp01_1m
monitor_speed = 115200
board_build.ldscript = eagle.flash.1m64.ld
[env:ESP8266-ESP01-SPIFFS]
extends = env:ESP8266-ESP01
; Ordering is intentional here; the USE_SPIFFS flag must be defined before the other build flags or it's silently dropped!
build_flags = -D USE_SPIFFS ${env:ESP8266-ESP01.build_flags}
;
; WEMOS_D1_Mini targets
;
[env:WEMOS_D1_Mini]
extends = espressif8266
board = d1_mini
monitor_speed = 115200
upload_speed = 460800
board_build.ldscript = eagle.flash.4m2m.ld
[env:WEMOS_D1_Mini-SPIFFS]
extends = env:WEMOS_D1_Mini
; Ordering is intentional here; the USE_SPIFFS flag must be defined before the other build flags or it's silently dropped!
build_flags = -D USE_SPIFFS ${env:WEMOS_D1_Mini.build_flags}
;
; ESP32DEV targets
;
[env:ESP32DEV]
extends = espressif32
board = esp32dev
[env:ESP32DEV-SPIFFS]
extends = env:ESP32DEV
build_flags = ${env:ESP32DEV.build_flags} -D USE_SPIFFS