Skip to content

Commit

Permalink
Updated Listfiles SD example
Browse files Browse the repository at this point in the history
Changed SS pin to 4 for consistency with other examples
  • Loading branch information
shfitz committed Feb 2, 2014
1 parent 017326a commit 1c28dab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/SD/examples/listfiles/listfiles.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
by David A. Mellis
modified 9 Apr 2012
by Tom Igoe
modified 2 Feb 2014
by Scott Fitzgerald
This example code is in the public domain.
Expand All @@ -38,7 +40,7 @@ void setup()
// or the SD library functions will not work.
pinMode(10, OUTPUT);

if (!SD.begin(10)) {
if (!SD.begin(4)) {
Serial.println("initialization failed!");
return;
}
Expand Down

0 comments on commit 1c28dab

Please sign in to comment.