Update projects_novice

2025-04-30 06:40:53 +02:00
parent 758795dc2c
commit d8da5b1eea

@@ -46,11 +46,11 @@ while True:
# Hvis begge knapper trykkes
audio.play(Sound.HELLO)
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)
display.show(Image.HAPPY)
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)
display.show(Image.BUTTERFLY)