Skip to content

Commit ea627e7

Browse files
committed
Replace tuples for configs with dictionaries
This makes it more readable and self-documenting
1 parent 7b0b01b commit ea627e7

File tree

1 file changed

+13
-13
lines changed
  • tests/binary_counter

1 file changed

+13
-13
lines changed

tests/binary_counter/BUILD

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,39 @@
1515
load("//platformio:platformio.bzl", "platformio_project")
1616

1717
configs = [
18-
(
19-
"mega",
20-
"megaatmega2560",
21-
[
18+
{
19+
"name": "mega",
20+
"board": "megaatmega2560",
21+
"build_flags": [
2222
"-DRED_LED_PIN=44",
2323
"-DORANGE_LED_PIN=46",
2424
"-DGREEN_LED_PIN=48",
2525
"-DBLUE_LED_PIN=50",
2626
"-DYELLOW_LED_PIN=52",
2727
"-DBUTTON_PIN=2",
2828
],
29-
),
30-
(
31-
"nano",
32-
"nanoatmega328",
33-
[
29+
},
30+
{
31+
"name": "nano",
32+
"board": "nanoatmega328",
33+
"build_flags": [
3434
"-DRED_LED_PIN=3",
3535
"-DORANGE_LED_PIN=4",
3636
"-DGREEN_LED_PIN=5",
3737
"-DBLUE_LED_PIN=6",
3838
"-DYELLOW_LED_PIN=7",
3939
"-DBUTTON_PIN=2",
4040
],
41-
),
41+
},
4242
]
4343

4444
[platformio_project(
45-
name = "binary_counter_%s" % config[0],
45+
name = "binary_counter_%s" % config["name"],
4646
src = "binary_counter.cc",
47-
board = config[1],
47+
board = config["board"],
4848
framework = "arduino",
4949
platform = "atmelavr",
50-
build_flags = config[2],
50+
build_flags = config["build_flags"],
5151
deps = [
5252
"//tests/arduino:Arduino_impl",
5353
"//tests/arduino:Arduino_interface",

0 commit comments

Comments
 (0)