Datasheet

Library Reference
class Adafruit_VS1053_FilePlayer
The Adafruit_VS1053_FilePlayer class is derived from the Adafruit_VS1053 class and provides high
level functions for playing files stored on the VS1053 breakout SD Card reader.
Public Methods:
Adafruit_VS1053_FilePlayer (int8_t mosi, int8_t miso, int8_t clk, int8_t rst, int8_t cs,
int8_t dcs, int8_t dreq, int8_t cardCS) - Software SPI constructor. Uses Software SPI, so
you must specify all SPI pins.
Adafruit_VS1053_FilePlayer (int8_t rst, int8_t cs, int8_t dcs, int8_t dreq, int8_t cardCS)
- Hardware SPI constructor. Uses Hardware SPI and assumes the default SPI pins. This is
what you'll likely use if you're using the shield.
boolean begin(void) - Initialize communication and reset the chip. Returns true if a VS1053
is found
boolean useInterrupt(uint8_t type) - Specifies the interrupt to use for interrupt-driven
playback. Valid arguments are:
VS1053_FILEPLAYER_TIMER0_INT
VS1053_FILEPLAYER_PIN_INT
boolean startPlayingFile(char *trackname) - Begin playing the specified file from the SD
card using interrupt-driven playback. This allows your program to perform other tasks as the
file is playing.
boolean playFullFile(char *trackname) - Play the complete file. This function will not return
until the playback is complete.
Public Member Variables:
File currentTrack - File currently being played
boolean playingMusic - True if playback in progress
class Adafruit_VS1053
© Adafruit Industries
https://learn.adafruit.com/adafruit-music-maker-shield-vs1053-mp3-
wav-wave-ogg-vorbis-player
Page 29 of 33