File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 15
15
load ("//platformio:platformio.bzl" , "platformio_project" )
16
16
17
17
configs = [
18
- (
19
- "mega" ,
20
- "megaatmega2560" ,
21
- [
18
+ {
19
+ "name" : " mega" ,
20
+ "board" : " megaatmega2560" ,
21
+ "build_flags" : [
22
22
"-DRED_LED_PIN=44" ,
23
23
"-DORANGE_LED_PIN=46" ,
24
24
"-DGREEN_LED_PIN=48" ,
25
25
"-DBLUE_LED_PIN=50" ,
26
26
"-DYELLOW_LED_PIN=52" ,
27
27
"-DBUTTON_PIN=2" ,
28
28
],
29
- ) ,
30
- (
31
- "nano" ,
32
- "nanoatmega328" ,
33
- [
29
+ } ,
30
+ {
31
+ "name" : " nano" ,
32
+ "board" : " nanoatmega328" ,
33
+ "build_flags" : [
34
34
"-DRED_LED_PIN=3" ,
35
35
"-DORANGE_LED_PIN=4" ,
36
36
"-DGREEN_LED_PIN=5" ,
37
37
"-DBLUE_LED_PIN=6" ,
38
38
"-DYELLOW_LED_PIN=7" ,
39
39
"-DBUTTON_PIN=2" ,
40
40
],
41
- ) ,
41
+ } ,
42
42
]
43
43
44
44
[platformio_project (
45
- name = "binary_counter_%s" % config [0 ],
45
+ name = "binary_counter_%s" % config ["name" ],
46
46
src = "binary_counter.cc" ,
47
- board = config [1 ],
47
+ board = config ["board" ],
48
48
framework = "arduino" ,
49
49
platform = "atmelavr" ,
50
- build_flags = config [2 ],
50
+ build_flags = config ["build_flags" ],
51
51
deps = [
52
52
"//tests/arduino:Arduino_impl" ,
53
53
"//tests/arduino:Arduino_interface" ,
You can’t perform that action at this time.
0 commit comments