sdfat says its compatible with the standard sd.h implementations
but i tried to just change the include and it messes up (not my idea of backwards compatible but ok)
my project is huge and i only need one function from sdfat which is cwd(), kinda lame i have to comprimise so much space for one function but ok, now i need some help getting it to work... i can post the code in a dowload if need be but its a major mess.
The File class has all the SdBaseFile functions plus the functions in
the Arduino SD.h File class. This provides compatibility with the
Arduino SD.h library.
Arduino: 1.8.1 (Linux), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
WARNING: Category 'Language' in library ArduinoStreaming is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
Analog_320x240_2:13: error: 'SdVolume' does not name a type
SdVolume volume;
^
/home/tjohnson/sketchbook/Analog_320x240_2/InitCore.ino: In function 'void InitializeCore()':
InitCore:68: error: 'volume' was not declared in this scope
if (!volume.init(card)) {
^
InitCore:82: error: 'volume' was not declared in this scope
pVar(volume.fatType(), TFT_GREEN, 80, Line, 1);
^
/home/tjohnson/sketchbook/Analog_320x240_2/SD_Functions.ino: In function 'double SDFreeSpace(double)':
SD_Functions:132: error: 'volume' was not declared in this scope
volumesize = volume.blocksPerCluster(); // clusters are collections of blocks
^
exit status 1
'SdVolume' does not name a type
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Arduino: 1.8.1 (Linux), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
WARNING: Category 'Language' in library ArduinoStreaming is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
/home/tjohnson/sketchbook/Analog_320x240_2/InitCore.ino: In function 'void InitializeCore()':
InitCore:68: error: 'volume' was not declared in this scope
if (!volume.init(card)) {
^
InitCore:82: error: 'volume' was not declared in this scope
pVar(volume.fatType(), TFT_GREEN, 80, Line, 1);
^
/home/tjohnson/sketchbook/Analog_320x240_2/SD_Functions.ino: In function 'double SDFreeSpace(double)':
SD_Functions:132: error: 'volume' was not declared in this scope
volumesize = volume.blocksPerCluster(); // clusters are collections of blocks
^
exit status 1
'volume' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
boom what to do about the volume class which i been through the source and didnt see... this is error 1
possible solution:
1) On replacing SD.h, I got a series of "volume" errors
WebServer.ino:150:1: error: 'SdVolume' does not name a type:
WebServer.ino:244:26: error: 'volume' was not declared in this scope
So I deleted the volume code completely -it seems unneeded in the SdFat code
2a) The next errors were related to the change from 'SdFile::readDir(dir_t&)' to 'FatFile::readDir(dir_t*)'
2b) and 'SdFile::open(SdFile&, const char*&, int)' to 'open(FatFileSystem* fs, const char* path, uint8_t oflag)'
another thing how do you shut this stupid streaming off? another thing i always hated about C++ streaming... eeew
it continues; try to get the BMP to display and poof broken.. infact it says my image is 2GB... its maybe 238kb
Loading image '/img/I-7.bmp'
File size:
2223656258
Image Offset: 2223656258
Header size: 2223656258
BMP format not recognized.
even further looking into this shows its just a problem with my code that used sd.h because when i run the example Quickstart i get
Card size: 1990 MB (MB = 1,000,000 bytes)
Volume is FAT16, Cluster size (bytes): 32768
Files found (date time size name):
2017-01-26 09:06:26 0 IMG/
2017-01-26 08:25:44 230454 I-0.BMP
2017-01-26 08:32:00 230538 I-1.BMP
2017-01-26 08:32:10 230538 I-2.BMP
2017-01-26 08:32:28 230538 I-3.BMP
2017-01-26 08:32:46 230538 I-4.BMP
2017-01-26 08:33:04 230538 I-5.BMP
2017-01-26 08:33:18 230538 I-6.BMP
2017-01-26 08:33:30 230538 I-7.BMP
-TB