Skip to content

Commit 5958d76

Browse files
committed
Add ini file
1 parent 2edb6d5 commit 5958d76

File tree

1 file changed

+370
-0
lines changed

1 file changed

+370
-0
lines changed

platformio.ini

Lines changed: 370 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,370 @@
1+
;-----------------------------------------------------------------------
2+
; M5Unit-EXTIO
3+
; For UnitTest and examples (Using M5UnitUnified)
4+
;-----------------------------------------------------------------------
5+
[platformio]
6+
7+
[env]
8+
build_flags =-Wall -Wextra -Wreturn-local-addr -Werror=format -Werror=return-local-addr
9+
lib_ldf_mode = deep
10+
test_framework = googletest
11+
test_build_src = true
12+
lib_deps=m5stack/M5Unified
13+
m5stack/M5UnitUnified@^0.0.5
14+
15+
; --------------------------------
16+
[m5base]
17+
monitor_speed = 115200
18+
monitor_filters = esp32_exception_decoder, time
19+
upload_speed = 1500000
20+
test_speed = 115200
21+
test_ignore= native/*
22+
23+
[Core]
24+
extends = m5base
25+
board = m5stack-grey
26+
;m5stack-core-esp32-16M ;;6.8.0 or later
27+
;m5stack-core-esp32
28+
lib_deps = ${env.lib_deps}
29+
30+
[Core2]
31+
extends = m5base
32+
board = m5stack-core2
33+
lib_deps = ${env.lib_deps}
34+
35+
[CoreS3]
36+
extends = m5base
37+
board = m5stack-cores3
38+
lib_deps = ${env.lib_deps}
39+
40+
[Fire]
41+
extends = m5base
42+
board = m5stack-fire
43+
lib_deps = ${env.lib_deps}
44+
45+
[StampS3]
46+
;include M5Capsule, DinMeter
47+
extends = m5base
48+
board = m5stack-stamps3
49+
lib_deps = ${env.lib_deps}
50+
51+
[Dial]
52+
extends = m5base
53+
board = m5stack-stamps3
54+
lib_deps = ${env.lib_deps}
55+
m5stack/M5Dial
56+
57+
[AtomMatrix]
58+
extends = m5base
59+
board = m5stack-atom
60+
lib_deps = ${env.lib_deps}
61+
62+
[AtomS3]
63+
extends = m5base
64+
board = m5stack-atoms3
65+
lib_deps = ${env.lib_deps}
66+
67+
; Using ./boards/m5stack-atoms3r.json
68+
[AtomS3R]
69+
extends = m5base
70+
board = m5stack-atoms3r
71+
lib_deps = ${env.lib_deps}
72+
73+
; Using ./boards/m5stack-nanoc6.json
74+
[NanoC6]
75+
extends = m5base
76+
board = m5stack-nanoc6
77+
platform = https://github.com/platformio/platform-espressif32.git
78+
platform_packages =
79+
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#idf-release/v5.1
80+
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1
81+
board_build.partitions = default.csv
82+
lib_deps = ${env.lib_deps}
83+
84+
[StickCPlus]
85+
extends = m5base
86+
board = m5stick-c
87+
lib_deps = ${env.lib_deps}
88+
89+
; Using ./boards/m5stick-cplus2.json
90+
[StickCPlus2]
91+
extends = m5base
92+
board = m5stick-cplus2
93+
lib_deps = ${env.lib_deps}
94+
95+
[Paper]
96+
extends = m5base
97+
board = m5stack-fire
98+
lib_deps = ${env.lib_deps}
99+
100+
[CoreInk]
101+
extends = m5base
102+
board = m5stack-coreink
103+
lib_deps = ${env.lib_deps}
104+
105+
[sdl]
106+
build_flags = -O3 -xc++ -std=c++14 -lSDL2
107+
-arch arm64 ; for arm mac
108+
-I"/usr/local/include/SDL2" ; for intel mac homebrew SDL2
109+
-L"/usr/local/lib" ; for intel mac homebrew SDL2
110+
-I"${sysenv.HOMEBREW_PREFIX}/include/SDL2" ; for arm mac homebrew SDL2
111+
-L"${sysenv.HOMEBREW_PREFIX}/lib" ; for arm mac homebrew SDL2
112+
platform = native
113+
test_filter= native/*
114+
test_ignore= embedded/*
115+
lib_deps = ${env.lib_deps}
116+
117+
; --------------------------------
118+
;Choose framework
119+
[arduino_latest]
120+
platform = espressif32 @ 6.8.1
121+
framework = arduino
122+
123+
[arduino_6_6_0]
124+
platform = espressif32 @ 6.6.0
125+
framework = arduino
126+
127+
[arduino_6_0_1]
128+
platform = espressif32 @ 6.0.1
129+
framework = arduino
130+
131+
[arduino_5_4_0]
132+
platform = espressif32 @ 5.4.0
133+
framework = arduino
134+
135+
[arduino_4_4_0]
136+
platform = espressif32 @ 4.4.0
137+
framework = arduino
138+
139+
;[esp-idf]
140+
;platform = espressif32 @ 6.8.1
141+
;framework = espidf
142+
143+
; --------------------------------
144+
;Choose build options
145+
[option_release]
146+
build_type=release
147+
build_flags = ${env.build_flags}
148+
-DCORE_DEBUG_LEVEL=3
149+
-DLOG_LOCAL_LEVEL=3
150+
-DAPP_LOG_LEVEL=3
151+
-DM5_LOG_LEVEL=3
152+
153+
[option_log]
154+
build_type=release
155+
build_flags = ${env.build_flags}
156+
-DCORE_DEBUG_LEVEL=5
157+
-DLOG_LOCAL_LEVEL=5
158+
-DAPP_LOG_LEVEL=5
159+
160+
[option_debug]
161+
build_type=debug
162+
build_flags = ${env.build_flags}
163+
-DCORE_DEBUG_LEVEL=5
164+
-DLOG_LOCAL_LEVEL=5
165+
-DAPP_LOG_LEVEL=5
166+
-DDEBUG
167+
168+
[option_map]
169+
build_type=release
170+
build_flags = ${env.build_flags}
171+
-DCORE_DEBUG_LEVEL=3
172+
-DLOG_LOCAL_LEVEL=3
173+
-DAPP_LOG_LEVEL=3
174+
-DM5_LOG_LEVEL=0
175+
-Wl,-Map,output.map
176+
177+
; Require at leaset C++14 after 1.13.0
178+
[test_fw]
179+
lib_deps = google/[email protected]
180+
181+
; --------------------------------
182+
; UnitTest
183+
; --------------------------------
184+
; UnitExtIO2
185+
[env:test_UnitExtIO2_Core]
186+
extends=Core, option_release, arduino_latest
187+
lib_deps = ${Core.lib_deps}
188+
${test_fw.lib_deps}
189+
test_filter= embedded/test_extio2
190+
191+
[env:test_UnitExtIO2_Core2]
192+
extends=Core2, option_release, arduino_latest
193+
lib_deps = ${Core2.lib_deps}
194+
${test_fw.lib_deps}
195+
test_filter= embedded/test_extio2
196+
197+
[env:test_UnitExtIO2_CoreS3]
198+
extends=CoreS3, option_release, arduino_latest
199+
lib_deps = ${CoreS3.lib_deps}
200+
${test_fw.lib_deps}
201+
test_filter= embedded/test_extio2
202+
203+
[env:test_UnitExtIO2_Fire]
204+
extends=Fire, option_release, arduino_latest
205+
lib_deps = ${Fire.lib_deps}
206+
${test_fw.lib_deps}
207+
test_filter= embedded/test_extio2
208+
209+
[env:test_UnitExtIO2_StampS3]
210+
extends=StampS3, option_release, arduino_latest
211+
lib_deps = ${StampS3.lib_deps}
212+
${test_fw.lib_deps}
213+
test_filter= embedded/test_extio2
214+
215+
[env:test_UnitExtIO2_Dial]
216+
extends=Dial, option_release, arduino_latest
217+
lib_deps = ${Dial.lib_deps}
218+
${test_fw.lib_deps}
219+
test_filter= embedded/test_extio2
220+
221+
[env:test_UnitExtIO2_AtomMatrix]
222+
extends=AtomMatrix, option_release, arduino_latest
223+
lib_deps = ${AtomMatrix.lib_deps}
224+
${test_fw.lib_deps}
225+
test_filter= embedded/test_extio2
226+
227+
[env:test_UnitExtIO2_AtomS3]
228+
extends=AtomS3, option_release, arduino_latest
229+
lib_deps = ${AtomS3.lib_deps}
230+
${test_fw.lib_deps}
231+
test_filter= embedded/test_extio2
232+
233+
[env:test_UnitExtIO2_AtomS3R]
234+
extends=AtomS3R, option_release, arduino_latest
235+
lib_deps = ${AtomS3R.lib_deps}
236+
${test_fw.lib_deps}
237+
test_filter= embedded/test_extio2
238+
239+
[env:test_UnitExtIO2_NanoC6]
240+
extends=NanoC6, option_release, arduino_latest
241+
lib_deps = ${NanoC6.lib_deps}
242+
${test_fw.lib_deps}
243+
test_filter= embedded/test_extio2
244+
245+
[env:test_UnitExtIO2_StickCPlus]
246+
extends=StickCPlus, option_release, arduino_latest
247+
lib_deps = ${StickCPlus.lib_deps}
248+
${test_fw.lib_deps}
249+
test_filter= embedded/test_extio2
250+
251+
[env:test_UnitExtIO2_StickCPlus2]
252+
extends=StickCPlus2, option_release, arduino_latest
253+
lib_deps = ${StickCPlus2.lib_deps}
254+
${test_fw.lib_deps}
255+
test_filter= embedded/test_extio2
256+
257+
[env:test_UnitExtIO2_Paper]
258+
extends=Paper, option_release, arduino_latest
259+
lib_deps = ${Paper.lib_deps}
260+
${test_fw.lib_deps}
261+
test_filter= embedded/test_extio2
262+
263+
[env:test_UnitExtIO2_CoreInk]
264+
extends=CoreInk, option_release, arduino_latest
265+
lib_deps = ${CoreInk.lib_deps}
266+
${test_fw.lib_deps}
267+
test_filter= embedded/test_extio2
268+
269+
; --------------------------------
270+
; Examples by M5UnitUnified
271+
; --------------------------------
272+
; UnitExtIO2
273+
[env:UnitExtIO2_AnaDigInput_Core_Arduino_latest]
274+
extends=Core, option_release, arduino_latest
275+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
276+
277+
[env:UnitExtIO2_AnaDigInput_Core_Arduino_5_4_0]
278+
extends=Core, option_release, arduino_5_4_0
279+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
280+
281+
[env:UnitExtIO2_AnaDigInput_Core_Arduino_4_4_0]
282+
extends=Core, option_release, arduino_4_4_0
283+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
284+
285+
[env:UnitExtIO2_AnaDigInput_Core2_Arduino_latest]
286+
extends=Core2, option_release, arduino_latest
287+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
288+
289+
[env:UnitExtIO2_AnaDigInput_Core2_Arduino_5_4_0]
290+
extends=Core2, option_release, arduino_5_4_0
291+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
292+
293+
[env:UnitExtIO2_AnaDigInput_Core2_Arduino_4_4_0]
294+
extends=Core2, option_release, arduino_4_4_0
295+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
296+
297+
[env:UnitExtIO2_AnaDigInput_CoreS3_Arduino_latest]
298+
extends=CoreS3, option_release, arduino_latest
299+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
300+
301+
[env:UnitExtIO2_AnaDigInput_StampS3_Arduino_latest]
302+
extends=StampS3, option_release, arduino_latest
303+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
304+
305+
[env:UnitExtIO2_AnaDigInput_AtomMatrix_Arduino_latest]
306+
extends=AtomMatrix, option_release, arduino_latest
307+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
308+
309+
[env:UnitExtIO2_AnaDigInput_AtomS3_Arduino_latest]
310+
extends=AtomS3, option_release, arduino_latest
311+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
312+
313+
[env:UnitExtIO2_AnaDigInput_AtomS3R_Arduino_latest]
314+
extends=AtomS3R, option_release, arduino_latest
315+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
316+
317+
[env:UnitExtIO2_AnaDigInput_Dial_Arduino_latest]
318+
extends=Dial, option_release, arduino_latest
319+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
320+
321+
[env:UnitExtIO2_AnaDigInput_NanoC6_Arduino_latest]
322+
extends=NanoC6, option_release, arduino_latest
323+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
324+
325+
[env:UnitExtIO2_AnaDigInput_StickCPlus_Arduino_latest]
326+
extends=StickCPlus, option_release, arduino_latest
327+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
328+
329+
[env:UnitExtIO2_AnaDigInput_StickCPlus2_Arduino_latest]
330+
extends=StickCPlus2, option_release, arduino_latest
331+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
332+
333+
[env:UnitExtIO2_AnaDigInput_Paper_Arduino_latest]
334+
extends=Paper, option_release, arduino_latest
335+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
336+
337+
[env:UnitExtIO2_AnaDigInput_CoreInk_Arduino_latest]
338+
extends=CoreInk, option_release, arduino_latest
339+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
340+
341+
[env:UnitExtIO2_AnaDigInput_Fire_Arduino_latest]
342+
extends=Fire, option_release, arduino_latest
343+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
344+
345+
[env:UnitExtIO2_AnaDigInput_Fire_Arduino_5_4_0]
346+
extends=Fire, option_release, arduino_5_4_0
347+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
348+
349+
[env:UnitExtIO2_AnaDigInput_Fire_Arduino_4_4_0]
350+
extends=Fire, option_release, arduino_4_4_0
351+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/AnaDigInput>
352+
353+
;
354+
; For the following samples, please refer to AnaDigInput to create env for your own environment
355+
; 以下のサンプルは、AnaDigInput を参考にして、自分の環境にあった env を作成してください
356+
;
357+
; Digital output
358+
[env:UnitExtIO2_DigOutput_Core_Arduino_latest]
359+
extends=Core, option_release, arduino_latest
360+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/DigOutput>>
361+
362+
; Servo control
363+
[env:UnitExtIO2_ServoControl_Core_Arduino_latest]
364+
extends=Core, option_release, arduino_latest
365+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/ServoControl>>
366+
367+
; LED control
368+
[env:UnitExtIO2_LEDControl_Core_Arduino_latest]
369+
extends=Core, option_release, arduino_latest
370+
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitExtIO2/LEDControl>>

0 commit comments

Comments
 (0)