From c6b3af384ed0ffe6543d158e2a3bb419464d9d2d Mon Sep 17 00:00:00 2001 From: Mike Barela Date: Tue, 23 Jul 2019 17:53:26 -0400 Subject: [PATCH] change 3 fixed lists to tuples --- CPX_Simon_Game/code.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/CPX_Simon_Game/code.py b/CPX_Simon_Game/code.py index 1521ca48c..b8a3ee836 100644 --- a/CPX_Simon_Game/code.py +++ b/CPX_Simon_Game/code.py @@ -4,26 +4,26 @@ from adafruit_circuitplayground.express import cpx cpx.pixels.brightness = 0.1 # adjust NeoPixel brightness to your liking -REGION_LEDS = [ - [5, 6, 7], # yellow region - [2, 3, 4], # blue region - [7, 8, 9], # red region - [0, 1, 2], # green region -] +REGION_LEDS = ( + (5, 6, 7), # yellow region + (2, 3, 4), # blue region + (7, 8, 9), # red region + (0, 1, 2), # green region +) -REGION_COLOR = [ +REGION_COLOR = ( (255, 255, 0), # yellow region (0, 0, 255), # blue region (255, 0, 0), # red region (0, 255, 0), # green region -] +) -REGION_TONE = [ +REGION_TONE = ( 252, # yellow region 209, # blue region 310, # red region 415, # green region -] +) PAD_REGION = { 'A1': 0, # yellow region