update fix for plynt
update fix for plynt
This commit is contained in:
parent
a03599ec47
commit
33eec6717e
1 changed files with 0 additions and 13 deletions
|
|
@ -1,27 +1,16 @@
|
|||
# SPDX-FileCopyrightText: 2022 Noe Ruiz for Adafruit Industries
|
||||
# SPDX-License-Identifier: MIT
|
||||
# Magic Band Reader with Wiz Kit RFID
|
||||
import time
|
||||
import random
|
||||
import board
|
||||
import digitalio
|
||||
import audiobusio
|
||||
from audiocore import WaveFile
|
||||
|
||||
try:
|
||||
from audioio import AudioOut
|
||||
except ImportError:
|
||||
try:
|
||||
from audiopwmio import PWMAudioOut as AudioOut
|
||||
except ImportError:
|
||||
pass # not always supported by every board!
|
||||
|
||||
import neopixel
|
||||
from adafruit_led_animation.animation.chase import Chase
|
||||
from adafruit_led_animation.animation.solid import Solid
|
||||
from adafruit_led_animation.color import (
|
||||
GREEN,
|
||||
PINK,
|
||||
BLACK,
|
||||
)
|
||||
|
||||
|
|
@ -59,10 +48,8 @@ sounds = [
|
|||
while True:
|
||||
print("Waiting for button press to continue!")
|
||||
while button.value:
|
||||
pass
|
||||
solid.animate()
|
||||
play_wav(random.choice(sounds))
|
||||
while audio.playing:
|
||||
pass
|
||||
chase.animate()
|
||||
print("Done!")
|
||||
|
|
|
|||
Loading…
Reference in a new issue