changed colours
This commit is contained in:
parent
c3e1af432a
commit
3830e47103
@ -677,7 +677,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
|
||||
@ -794,7 +794,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
|
||||
|
Loading…
Reference in New Issue
Block a user