changed colours

This commit is contained in:
Raphael 2019-10-29 16:20:35 +01:00
parent c3e1af432a
commit 3830e47103

View File

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