mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
Updated listfiles SD example
Updated description of the file
This commit is contained in:
parent
cb9686dc33
commit
4869f7f979
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user