Skip to content

Commit c6b3af3

Browse files
authored
change 3 fixed lists to tuples
1 parent 2760efc commit c6b3af3

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

CPX_Simon_Game/code.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44

55
cpx.pixels.brightness = 0.1 # adjust NeoPixel brightness to your liking
66

7-
REGION_LEDS = [
8-
[5, 6, 7], # yellow region
9-
[2, 3, 4], # blue region
10-
[7, 8, 9], # red region
11-
[0, 1, 2], # green region
12-
]
13-
14-
REGION_COLOR = [
7+
REGION_LEDS = (
8+
(5, 6, 7), # yellow region
9+
(2, 3, 4), # blue region
10+
(7, 8, 9), # red region
11+
(0, 1, 2), # green region
12+
)
13+
14+
REGION_COLOR = (
1515
(255, 255, 0), # yellow region
1616
(0, 0, 255), # blue region
1717
(255, 0, 0), # red region
1818
(0, 255, 0), # green region
19-
]
19+
)
2020

21-
REGION_TONE = [
21+
REGION_TONE = (
2222
252, # yellow region
2323
209, # blue region
2424
310, # red region
2525
415, # green region
26-
]
26+
)
2727

2828
PAD_REGION = {
2929
'A1': 0, # yellow region

0 commit comments

Comments
 (0)