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 SC Card
reader.
Public Methods:
Adafruit_VS1053_FilePlayer (uint8_t mosi, uint8_t miso, uint8_t clk,
uint8_t rst, uint8_t cs, uint8_t dcs, uint8_t dreq, uint8_t cardCS) - Software
SPI constructor. Uses Software SPI, so you must specify all SPI pins.
Adafruit_VS1053_FilePlayer (uint8_t rst, uint8_t cs, uint8_t dcs, uint8_t
dreq, uint8_t cardCS) - Hardware SPI constructor. Uses Hardware SPI and assumes
the default SPI pins.
boolean begin(void) - Initialize communication and reset the chip.
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
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).
public Methods:
© Adafruit Industries
https://learn.adafruit.com/adafruit-vs1053-mp3-aac-ogg-midi-wav-
play-and-record-codec-tutorial
Page 28 of 32