116 bool lastBusy =
false;
117 uint32_t busyTimer = 0;
126 uint8_t calculateChecksum(uint8_t* buf, uint8_t len);
137 void sendCommand(uint8_t* txbuf, uint8_t txlen);
150 bool sendCommandWait(uint8_t* txbuf, uint8_t txlen);
bool playStringWait(const char *path)
Play a track by its filename or path and waits for busy.
Definition DYSV17Fmp3.cpp:93
DYSV17Fmp3(Stream &stream, uint8_t busyPin)
Construct a new DYSV17Fmp3 object.
Definition DYSV17Fmp3.cpp:14
bool playString(const char *path)
Play a track by its filename or path.
Definition DYSV17Fmp3.cpp:78
bool playNumber(uint8_t songNumber)
Play a track by its number/index.
Definition DYSV17Fmp3.cpp:69
void begin()
Initialize the MP3 player module.
Definition DYSV17Fmp3.cpp:18
void setVolume(uint8_t volume)
Set the volume of the MP3 player.
Definition DYSV17Fmp3.cpp:63
bool waitForBusyChange(uint32_t timeoutMs=250)
Wait for busy state to change or timeout.
Definition DYSV17Fmp3.cpp:111
void reset()
sends the software reset command
Definition DYSV17Fmp3.cpp:45
void stop()
Stops the current playback.
Definition DYSV17Fmp3.cpp:54
bool isBusy()
Get the current busy state of the MP3 player.
Definition DYSV17Fmp3.cpp:107
void update()
monitors the busy line to produce debug output
Definition DYSV17Fmp3.cpp:23