-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
86 lines (63 loc) · 1.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
; 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
;settings:
[enviroment]
version = '"alpha"'
lib_deps =
bblanchon/ArduinoJson @ ^6.18.5
build_flags =
-DVERSION=${enviroment.version}
[test_enviroment]
test_lib_deps =
https://github.com/eranpeer/FakeIt.git
lib_deps =
${enviroment.lib_deps}
${test_enviroment.test_lib_deps}
native_build_flags =
-DTEST
${enviroment.build_flags}
common_build_flags =
-DARDUINO
${test_enviroment.native_build_flags}
[platformio]
default_envs =
nanoNew
unoR3
;Arduino nano V3.0
[env:nanoNew]
platform = atmelavr
board = nanoatmega328new
framework = arduino
lib_deps = ${enviroment.lib_deps}
build_flags = ${enviroment.build_flags}
[env:test_nanoNew]
platform = atmelavr
board = nanoatmega328new
framework = arduino
lib_deps = ${test_enviroment.lib_deps}
build_flags = ${test_enviroment.common_build_flags}
;Arduino uno R3
[env:unoR3]
platform = atmelavr
board = uno
framework = arduino
lib_deps = ${enviroment.lib_deps}
build_flags = ${enviroment.build_flags}
[env:test_unoR3]
platform = atmelavr
board = uno
framework = arduino
lib_deps = ${test_enviroment.lib_deps}
build_flags = ${test_enviroment.common_build_flags}
;native
[env:native]
platform = native
lib_deps = ${test_enviroment.lib_deps}
build_flags = ${test_enviroment.native_build_flags}