MCPcopy Create free account
hub / github.com/PowerBroker2/DFPlayerMini_Fast / playLargeFolder

Method playLargeFolder

src/DFPlayerMini_Fast.cpp:477–488  ·  view source on GitHub ↗

/ ! @brief Play a specific track from a specific folder, where the track names are numbered 4 digit (e.g. 1234-mysong.mp3) and can be up to 3000. Only 15 folders ("01" to "15") are supported in this mode. @param folderNum The folder number. @param trackNum The track number to play. */ /

Source from the content-addressed store, hash-verified

475 */
476 /**************************************************************************/
477void DFPlayerMini_Fast::playLargeFolder(uint8_t folderNum, uint16_t trackNum)
478{
479 const uint16_t arg = (((uint16_t)folderNum) << 12) | (trackNum & 0xfff);
480
481 sendStack.commandValue = dfplayer::SPEC_TRACK_3000;
482 sendStack.feedbackValue = dfplayer::NO_FEEDBACK;
483 sendStack.paramMSB = arg >> 8;
484 sendStack.paramLSB = arg & 0xff;
485
486 findChecksum(sendStack);
487 sendData();
488}
489
490/**************************************************************************/
491 /*!

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected