Adding warning about leaving the hardware SS pin as an output.

This commit is contained in:
David A. Mellis 2010-11-21 17:11:17 -05:00
parent 29384e2f61
commit 012b4b0f0f
2 changed files with 8 additions and 2 deletions

View File

@ -6,7 +6,10 @@ void setup()
{
Serial.begin(9600);
Serial.print("Initializing SD card...");
// On the Ethernet Shield, CS is pin 4.
// On the Ethernet Shield, CS is pin 4. Note that even if it's not
// used as the CS pin, the hardware SS pin (10 on most Arduino boards,
// 53 on the Mega) must be left as an output or the SD library
// functions will not work.
if (!SD.begin(4)) {
Serial.println("failed!");
return;

View File

@ -6,7 +6,10 @@ void setup()
{
Serial.begin(9600);
Serial.print("Initializing SD card...");
// On the Ethernet Shield, CS is pin 4.
// On the Ethernet Shield, CS is pin 4. Note that even if it's not
// used as the CS pin, the hardware SS pin (10 on most Arduino boards,
// 53 on the Mega) must be left as an output or the SD library
// functions will not work.
if (!SD.begin(4)) {
Serial.println("failed!");
return;