Datasheet
The Adafruit_VS1053 class implements an interface to the basic VS1053 functionality. For more
detail on the operation of the VS1053 chip, please refer to the documentation on the Downloads
page (see the link to the left). Its a little more powerful but it's also harder to use. We suggest
sticking to the FilePlayer class which abstracts a lot of this out for you
public Methods:
Adafruit_VS1053(uint8_t mosi, uint8_t miso, uint8_t clk, uint8_t rst, uint8_t cs,
uint8_t dcs, uint8_t dreq) - Software SPI constructor - must specify all pins.
Adafruit_VS1053(uint8_t rst, uint8_t cs, uint8_t dcs, uint8_t dreq) - Hardware SPI
constructor - assumes hardware SPI pins.
uint8_t begin(void) - Initialize SPI communication and (hard) reset the chip.
void reset(void) - Performs a hard reset of the chip.
void softReset(void) - Attempts a soft reset of the chip.
uint16_t sciRead(uint8_t addr) - Reads from the specified register on the chip.
void sciWrite(uint8_t addr, uint16_t data) - Writes to the specified register on the chip.
void sineTest(uint8_t n, uint16_t ms) - Generate a sine-wave test signal.
void spiwrite(uint8_t d) - Low-level SPI write operation.
uint8_t spiread(void) - Low-level SPI read operation.
uint16_t decodeTime(void) - Reads the DECODETIME register from the chip.
void setVolume(uint8_t left, uint8_t right) - Set the output volume for the chip.
void dumpRegs(void) - Prints the contents of the MODE, STATUS, CLOCKF and VOLUME
registers.
void playData(uint8_t *buffer, uint8_t buffsiz) - Decode and play the contents of the
supplied buffer.
boolean readyForData(void) - Test if ready for more data.
void applyPatch(const uint16_t *patch, uint16_t patchsize) - Apply a code patch (See
© Adafruit Industries
https://learn.adafruit.com/adafruit-music-maker-shield-vs1053-mp3-
wav-wave-ogg-vorbis-player
Page 30 of 33