File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: 2022 Noe Ruiz for Adafruit Industries
22# SPDX-License-Identifier: MIT
33# Magic Band Reader with Wiz Kit RFID
4- import time
54import random
65import board
76import digitalio
87import audiobusio
98from audiocore import WaveFile
10-
11- try :
12- from audioio import AudioOut
13- except ImportError :
14- try :
15- from audiopwmio import PWMAudioOut as AudioOut
16- except ImportError :
17- pass # not always supported by every board!
18-
199import neopixel
2010from adafruit_led_animation .animation .chase import Chase
2111from adafruit_led_animation .animation .solid import Solid
2212from adafruit_led_animation .color import (
2313 GREEN ,
24- PINK ,
2514 BLACK ,
2615)
2716
@@ -59,10 +48,8 @@ def play_wav(name):
5948while True :
6049 print ("Waiting for button press to continue!" )
6150 while button .value :
62- pass
6351 solid .animate ()
6452 play_wav (random .choice (sounds ))
6553 while audio .playing :
66- pass
6754 chase .animate ()
6855 print ("Done!" )
You can’t perform that action at this time.
0 commit comments