Go Down

Topic: undocumented classes Sd2Card, SdVolume and SdFile (Read 8217 times) previous topic - next topic


Can someone point me to the documentation for the Sd2Card, SdVolume and SdFile classes?

The examples have these scattered about with no reference to where they come from or how to use them.

The only docs that I have found are at http://arduino.cc/en/Reference/SD

I mean to say that they look very useful, such as SdFile.ls() and SdFile.openRoot().


To answer my own question, and to give every NB a good background reference.



The Arduino group doesn't really want you to use these classes.  That's why they developed the SD.h wrapper.

If you want to use these classes you should probably use SdFat directly.  There is Doxygen html documentation for these classes with the SdFat library here http://code.google.com/p/sdfatlib/downloads/list.


Jul 28, 2012, 10:56 pm Last Edit: Jul 28, 2012, 11:00 pm by Checkers1811 Reason: 1

If they don't want us to use these classes, then they should take them out of the example code that comes with the SD library.

CardInfo is the first example in the list and it uses the SdFat utility functions exclusively ...
Code: [Select]
// set up variables using the SD utility library functions:
Sd2Card card;
SdVolume volume;
SdFile root;

Does this mean that the SD classes cannot get the job done?

(Datalogger, Dumpfile, Files, and ReadWrite are using the SD classes)

Actually, it seems that using SdFat directly would be a better solution until the SD library improves.


I am not part of the Arduino company so I can only guess about the company's policy.

I believe the reason for the success of Arduino is that the company has targeted beginners and to do this simplicity is key. 

SD.h provides beginners with adequate functionality so from the Arduino company's point of view it "gets the job done".

This appears to be an excellent business policy but can be frustrating for more advanced users.

There is plenty of third party software but don't expect the Arduino group to support advanced users.

Go Up