Skip to content

gyroing/vs1053-circuitpython

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

VS1053 Driver for CircuitPython

Sample code (for nRF52840 Dongle)

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)

About

VS1053B driver for CircuitPython

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%