Skip to content

Commit 592b055

Browse files
committed
take out intro fucntion
1 parent 375cc80 commit 592b055

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

PyRuler_Simon_Game/code.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,6 @@
3535

3636
cap_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-
4738
def 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

113104
while 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

0 commit comments

Comments
 (0)