import vs1053
import board
import busio
spi = busio.SPI(board.P0_22, MISO=board.P0_20, MOSI=board.P1_00)
player = vs1053.Player(
spi,
xResetPin = board.P1_10,
dReqPin = board.P1_13,
xDCSPin = board.P1_15,
xCSPin = board.P0_02,
CSPin = board.P0_24
)
inputFile = open('test.mp3', mode='rb')
buf = bytearray(32)
while inputFile.readinto(buf):
player.writeData(buf)
gyroing / vs1053-circuitpython Goto Github PK
View Code? Open in Web Editor NEWThis project forked from urish/vs1053-circuitpython
VS1053B driver for CircuitPython