Skip to content

Commit 33eec67

Browse files
committed
update fix for plynt
update fix for plynt
1 parent a03599e commit 33eec67

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Magic_Band_Reader/code.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,16 @@
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
54
import random
65
import board
76
import digitalio
87
import audiobusio
98
from 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-
199
import neopixel
2010
from adafruit_led_animation.animation.chase import Chase
2111
from adafruit_led_animation.animation.solid import Solid
2212
from adafruit_led_animation.color import (
2313
GREEN,
24-
PINK,
2514
BLACK,
2615
)
2716

@@ -59,10 +48,8 @@ def play_wav(name):
5948
while 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!")

0 commit comments

Comments
 (0)