forked from BlueAndi/Pixelix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
203 lines (187 loc) · 8.03 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
; 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 = adafruit_feather_esp32_v2
;default_envs = az-delivery-devkit-v4
default_envs = esp32doit-devkit-v1
;default_envs = esp32-nodemcu
;default_envs = lilygo-ttgo-t-display
;default_envs = lilygo-t-display-s3
;default_envs = m5stack_core
;default_envs = ulanzi-tc001
;default_envs = wemos_lolin_s2_mini
extra_configs =
config/buildMode.ini
config/board.ini
config/checker.ini
config/configNormal.ini
config/configSmall.ini
config/configSmallNoI2s.ini
config/configSmallUlanzi.ini
config/display.ini
config/mcu.ini
; ********************************************************************************
; Apply for all environments
; ********************************************************************************
[env]
; Check for the compatibility with frameworks and dev/platforms
lib_compat_mode = strict
; ********************************************************************************
; Select build mode here!
; ********************************************************************************
[mode:selected]
extends = mode:debug
build_flags =
${mode:debug.build_flags}
; ********************************************************************************
; Common for programming via USB
; ********************************************************************************
[common:prog_usb]
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
upload_protocol = esptool
extra_scripts =
; ********************************************************************************
; Common for programming via OTA
; ********************************************************************************
[common:prog_ota]
upload_protocol = espota
upload_port = 192.168.x.x
upload_flags =
--port=3232
--auth=maytheforcebewithyou
; ********************************************************************************
; Adafruit ESP32 Feather V2 - Programming via USB
; ********************************************************************************
[env:adafruit_feather_esp32_v2]
extends = board:adafruit_feather_esp32_v2, common:prog_usb, mode:selected, checker
build_flags =
${board:adafruit_feather_esp32_v2.build_flags}
${mode:selected.build_flags}
extra_scripts =
${board:adafruit_feather_esp32_v2.extra_scripts}
${common:prog_usb.extra_scripts}
; ********************************************************************************
; AZ-Delivery ESP-32 Dev Kit C V4 - LED matrix - Programming via USB
; ********************************************************************************
[env:az-delivery-devkit-v4]
extends = board:az-delivery-devkit-v4, common:prog_usb, mode:selected, checker
build_flags =
${board:az-delivery-devkit-v4.build_flags}
${mode:selected.build_flags}
extra_scripts =
${board:az-delivery-devkit-v4.extra_scripts}
${common:prog_usb.extra_scripts}
; ********************************************************************************
; ESP32 DevKit v1 - LED matrix - Programming via USB
; ********************************************************************************
[env:esp32doit-devkit-v1]
extends = board:esp32doit-devkit-v1, common:prog_usb, mode:selected, checker
build_flags =
${board:esp32doit-devkit-v1.build_flags}
${mode:selected.build_flags}
extra_scripts =
${board:esp32doit-devkit-v1.extra_scripts}
${common:prog_usb.extra_scripts}
; ********************************************************************************
; ESP32 NodeMCU - LED matrix - Programming via USB
; ********************************************************************************
[env:esp32-nodemcu]
extends = board:esp32-nodemcu, common:prog_usb, mode:selected, checker
build_flags =
${board:esp32-nodemcu.build_flags}
${mode:selected.build_flags}
extra_scripts =
${board:esp32-nodemcu.extra_scripts}
${common:prog_usb.extra_scripts}
; ********************************************************************************
; LILYGO(R) TTGO T-Display ESP32 WiFi and Bluetooth Module Development Board - Programming via USB
; ********************************************************************************
[env:lilygo-ttgo-t-display]
extends = board:lilygo-ttgo-t-display, common:prog_usb, mode:selected, checker
build_flags =
${board:lilygo-ttgo-t-display.build_flags}
${mode:selected.build_flags}
extra_scripts =
${board:lilygo-ttgo-t-display.extra_scripts}
${common:prog_usb.extra_scripts}
; ********************************************************************************
; LILYGO(R) T-Display S3 ESP32 WiFi and Bluetooth Module Development Board - Programming via USB
; ********************************************************************************
[env:lilygo-t-display-s3]
extends = board:lilygo-t-display-s3, common:prog_usb, mode:selected, checker
build_flags =
${board:lilygo-t-display-s3.build_flags}
${mode:selected.build_flags}
extra_scripts =
${board:lilygo-t-display-s3.extra_scripts}
${common:prog_usb.extra_scripts}
; ********************************************************************************
; M5Stack Core ESP32 WiFi and Bluetooth Module Development Board - Programming via USB
; ********************************************************************************
[env:m5stack_core]
extends = board:m5stack_core, common:prog_usb, mode:selected, checker
build_flags =
${board:m5stack_core.build_flags}
${mode:selected.build_flags}
extra_scripts =
${board:m5stack_core.extra_scripts}
${common:prog_usb.extra_scripts}
; ********************************************************************************
; Ulanzi TC001 - LED matrix - Programming via USB
; ********************************************************************************
[env:ulanzi-tc001]
extends = board:ulanzi-tc001, common:prog_usb, mode:selected, checker
build_flags =
${board:ulanzi-tc001.build_flags}
${mode:selected.build_flags}
extra_scripts =
${board:ulanzi-tc001.extra_scripts}
${common:prog_usb.extra_scripts}
; ********************************************************************************
; WEMOS Lolin S2 Mini - Programming via USB
; ********************************************************************************
[env:wemos_lolin_s2_mini]
extends = board:wemos_lolin_s2_mini, common:prog_usb, mode:selected, checker
build_flags =
${board:wemos_lolin_s2_mini.build_flags}
${mode:selected.build_flags}
extra_scripts =
${board:wemos_lolin_s2_mini.extra_scripts}
${common:prog_usb.extra_scripts}
; ********************************************************************************
; Native desktop platform - Only for testing purposes
; ********************************************************************************
[env:test]
platform = native @ ~1.2.1
test_framework = unity
build_flags =
-std=c++11
-D PROGMEM=
-D NATIVE
lib_compat_mode = off ; The muwerk/mufonts require Arduino framework.
lib_deps =
bblanchon/ArduinoJson @ ~6.21.2
muwerk/mufonts @ ~0.2.0
lib_ignore =
Sensors
${display:led_matrix_column_major_alternating.lib_deps_builtin}
${display:led_matrix_row_major_alternating.lib_deps_builtin}
${display:lilygo_ttgo_tdisplay.lib_deps_builtin}
${display:lilygo_tdisplay-s3.lib_deps_builtin}
check_tool = cppcheck, clangtidy
check_severity = high, medium
check_src_filters =
+<include/>
+<src/>
+<lib/>
check_flags =
cppcheck: --std=c++11 --inline-suppr --suppress=noExplicitConstructor --suppress=unreadVariable --suppress=unusedFunction --suppress=*:*/libdeps/*
clangtidy: --header-filter='' --checks=-*,clang-analyzer-*,performance-*,portability-*,readability-uppercase-literal-suffix,readability-redundant-control-flow --warnings-as-errors=-*,clang-analyzer-*,performance-*,portability-*,readability-uppercase-literal-suffix,readability-redundant-control-flow