Skip to content

Commit 4869f7f

Browse files
committed
Updated listfiles SD example
Updated description of the file
1 parent cb9686d commit 4869f7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/SD/examples/listfiles/listfiles.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/*
2-
SD card basic file example
2+
Listfiles
33
4-
This example shows how to create and destroy an SD card file
4+
This example shows how print out the files in a
5+
directory on a SD card
6+
57
The circuit:
68
* SD card attached to SPI bus as follows:
79
** MOSI - pin 11
@@ -29,7 +31,6 @@ void setup()
2931
; // wait for serial port to connect. Needed for Leonardo only
3032
}
3133

32-
3334
Serial.print("Initializing SD card...");
3435
// On the Ethernet Shield, CS is pin 4. It's set as an output by default.
3536
// 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) {
6162
File entry = dir.openNextFile();
6263
if (! entry) {
6364
// no more files
64-
//Serial.println("**nomorefiles**");
6565
break;
6666
}
6767
for (uint8_t i=0; i<numTabs; i++) {

0 commit comments

Comments
 (0)