Updated Listfiles SD example

Changed SS pin to 4 for consistency with other examples
This commit is contained in:
Scott Fitzgerald 2014-02-02 14:35:04 +04:00
parent 017326acc6
commit 1c28dab57b
1 changed files with 3 additions and 1 deletions

View File

@ -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.
@ -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;
}