Hi,
I'm using the Adafruit VS1053 MP3 Player library ( GitHub - adafruit/Adafruit_VS1053_Library: This is a Arduino library for the Adafruit VS1053 Codec Breakout and Music Maker Shields ) which includes <SD.h> in the .h and .cpp files.
I want to use SDFat in my Sketch in order to give myself long filename support. The SDFat readme says that, to make SDFat compatible with SD, I should include the following to the Sketch:
//remove #include <SD.h>
#include <SDFat.h>
SDFat SD
If I add those lines to the Sketch, VS1053.h complains that "File" doesn't name a type.
If I add the lines to the Sketch and VS1503.cpp, then VS1503.h complains about Redefinition of 'SdFat SD'
If I change the 'constructor' in VS1503.h to 'SdFat SD1' and change the references to SD within VS1503.cpp to SD1 it does compile without error BUT the Sketch obviously doesn't pass the "File" filename to VS1503.cpp as SD and SD1 are now two different things.
Any advice would be appreciated,
Thanks,
John.