Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

VS1053 + SDFAT
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

VS1053 + SDFAT

by s1b2storm on Thu Jun 11, 2020 3:33 pm

Hi,

I have already seen that there are some previous posts on this topic but they seem to be a few years old and a believe the library has changed.

In essence the issue I have is the same, I'm experimenting the VS1053 breakout board and can get that to work just fine. The example plays files and list the directory in the monitor window. As per previous posts I'd like to use long files names and hence want to switch to SdFat.

I have read the posts regarding using

// #include <SD.h>
#include <SdFat.h>
extern SdFat SD;

as in https://forum.arduino.cc/index.php?topic=287298.0 and the posts in this forum.

However when I look into the latest version of the Adafruit_VS1053.h file I see:

#include <SPI.h>
#if defined(PREFER_SDFAT_LIBRARY)
#include <SdFat.h>
extern SdFat SD;
#else
#include <SD.h>
#endif

This seems to suggest to me the that there has been an update I would just need to define PREFER_SDFAT_LIBRARY in my code but that doesn't seem to work

Are there any example on using this updated library with SdFat / Long file names?

s1b2storm
 
Posts: 1
Joined: Thu Jun 11, 2020 3:24 pm

Please be positive and constructive with your questions and comments.