Skip to content

Commit

Permalink
Updated listfiles SD example
Browse files Browse the repository at this point in the history
Updated description of the file
  • Loading branch information
shfitz committed Nov 11, 2013
1 parent cb9686d commit 4869f7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/SD/examples/listfiles/listfiles.ino
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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++) {
Expand Down

0 comments on commit 4869f7f

Please sign in to comment.