File tree 1 file changed +4
-4
lines changed
libraries/SD/examples/listfiles
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- SD card basic file example
2
+ Listfiles
3
3
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
+
5
7
The circuit:
6
8
* SD card attached to SPI bus as follows:
7
9
** MOSI - pin 11
@@ -29,7 +31,6 @@ void setup()
29
31
; // wait for serial port to connect. Needed for Leonardo only
30
32
}
31
33
32
-
33
34
Serial.print (" Initializing SD card..." );
34
35
// On the Ethernet Shield, CS is pin 4. It's set as an output by default.
35
36
// 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) {
61
62
File entry = dir.openNextFile ();
62
63
if (! entry) {
63
64
// no more files
64
- // Serial.println("**nomorefiles**");
65
65
break ;
66
66
}
67
67
for (uint8_t i=0 ; i<numTabs; i++) {
You can’t perform that action at this time.
0 commit comments