This commit is contained in:
Patrick Tschuchnig 2019-10-29 16:27:41 +01:00
commit 257c109f9f

View File

@ -682,7 +682,7 @@ while True:
# one shot for changing the led colour
if game_just_started:
print('game just started, changed colour of leds to green')
change_led_colour(0, 200, 0)
change_led_colour(200, 0, 200)
game_just_started = False
# reset all the surfaces to be empty
@ -799,7 +799,7 @@ while True:
# if another push of start is detected (i.e. the game is ending!)
if not GPIO.input(pin_stop):
# change led colour to red
change_led_colour(200, 0, 200)
change_led_colour(0, 200, 200)
# reset the one shot latch for the end of game timer
timer_game_ending_started = False