File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535
3636cap_touches = [False , False , False , False ]
3737
38- def intro_game ():
39- pixels .fill (blue )
40- time .sleep (1 )
41- for led in leds :
42- led .value = True
43- time .sleep (0.25 )
44- for led in leds :
45- led .value = False
46-
4738def wheel (pos ):
4839 # Input a value 0 to 255 to get a color value.
4940 # The colours are a transition r - g - b - back to r.
@@ -111,7 +102,14 @@ def read_sequence(seq):
111102 return True
112103
113104while True :
114- intro_game () # led light sequence at beginning of each game
105+ # led light sequence at beginning of each game
106+ pixels .fill (blue )
107+ time .sleep (1 )
108+ for led in leds :
109+ led .value = True
110+ time .sleep (0.25 )
111+ for led in leds :
112+ led .value = False
115113 sequence = []
116114 while True :
117115 pixels .fill (blue ) # blue for showing user sequence
You can’t perform that action at this time.
0 commit comments