Updated listfiles SD example

Updated description of the file
This commit is contained in:
Scott Fitzgerald 2013-11-11 16:19:48 +04:00
parent cb9686dc33
commit 4869f7f979
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,9 @@
/*
SD card basic file example
Listfiles
This example shows how to create and destroy an SD card file
This example shows how print out the files in a
directory on a SD card
The circuit:
* SD card attached to SPI bus as follows:
** MOSI - pin 11
@ -29,7 +31,6 @@ void setup()
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.print("Initializing SD card...");
// On the Ethernet Shield, CS is pin 4. It's set as an output by default.
// Note that even if it's not used as the CS pin, the hardware SS pin
@ -61,7 +62,6 @@ void printDirectory(File dir, int numTabs) {
File entry = dir.openNextFile();
if (! entry) {
// no more files
//Serial.println("**nomorefiles**");
break;
}
for (uint8_t i=0; i<numTabs; i++) {