Skip to content

Commit 012b4b0

Browse files
committed
Adding warning about leaving the hardware SS pin as an output.
1 parent 29384e2 commit 012b4b0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

libraries/SD/examples/Files/Files.pde

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

libraries/SD/examples/ReadWrite/ReadWrite.pde

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

0 commit comments

Comments
 (0)