Update projects_novice
@@ -46,11 +46,11 @@ while True:
|
|||||||
# Hvis begge knapper trykkes
|
# Hvis begge knapper trykkes
|
||||||
audio.play(Sound.HELLO)
|
audio.play(Sound.HELLO)
|
||||||
elif button_a.is_pressed():
|
elif button_a.is_pressed():
|
||||||
# On button A play a sound and when it's done show an image
|
# Hvis knap A trykkses, afspil en lyd, og derefter vis et billede
|
||||||
audio.play(Sound.HAPPY)
|
audio.play(Sound.HAPPY)
|
||||||
display.show(Image.HAPPY)
|
display.show(Image.HAPPY)
|
||||||
elif button_b.is_pressed():
|
elif button_b.is_pressed():
|
||||||
# On button B play a sound and show an image at the same time
|
# Hvis knap B trykkes, afspil en lyd of vis samtidig et billede
|
||||||
audio.play(Sound.TWINKLE, wait=False)
|
audio.play(Sound.TWINKLE, wait=False)
|
||||||
display.show(Image.BUTTERFLY)
|
display.show(Image.BUTTERFLY)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user