Skip to content

Commit 1c28dab

Browse files
committed
Updated Listfiles SD example
Changed SS pin to 4 for consistency with other examples
1 parent 017326a commit 1c28dab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/SD/examples/listfiles/listfiles.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
by David A. Mellis
1616
modified 9 Apr 2012
1717
by Tom Igoe
18+
modified 2 Feb 2014
19+
by Scott Fitzgerald
1820
1921
This example code is in the public domain.
2022
@@ -38,7 +40,7 @@ void setup()
3840
// or the SD library functions will not work.
3941
pinMode(10, OUTPUT);
4042

41-
if (!SD.begin(10)) {
43+
if (!SD.begin(4)) {
4244
Serial.println("initialization failed!");
4345
return;
4446
}

0 commit comments

Comments
 (0)