This commit is contained in:
2026-02-12 21:00:02 -08:00
parent 77f8236347
commit 8bdbf227ca
1141 changed files with 1010880 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
#include "AudioTools.h"
#include "AudioTools/Disk/AudioSourceVFS.h"
#include "AudioTools/Disk/VFS_SDSPI.h"
// We use an AudioKit or LyraT for the tests which uses the following pins
// CS, MOSI, MISO, SCK
VFS_SDSPI sd(13, 15, 2, 14);
AudioSourceVFS source(sd, "/sdcard", ".mp3");
void setup() {
Serial.begin(115200);
AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Info);
source.begin();
for (int j = 0; j < 10; j++) {
VFSFile* p_file = (VFSFile*)source.selectStream(j);
if (p_file)
Serial.println(p_file->name());
}
}
void loop() {}