In a code example there is a function to print a directory.
The function:
I don't know how to call dir() to print with Serial.
Can somebody tell me how?
The function:
Code:
/* Prints a directory.
* Callback must point to a function that prints one string. void SdPlayClass::dir(void (*callback)(char *)) */
void SdPlayClass::dir(void (*callback)(char *))
{
if(!_pBuf) {
_lastError = SSDA_ERROR_NOT_INIT;
} else {
stop(*SimpleSDAudio_Timer);
SD_L2_Dir(0, 0x00, 0x18, callback);
}
}
Can somebody tell me how?