File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ void setup()
6
6
{
7
7
Serial . begin(9600 );
8
8
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.
10
13
if (! SD . begin(4 )) {
11
14
Serial . println(" failed!" );
12
15
return ;
Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ void setup()
6
6
{
7
7
Serial . begin(9600 );
8
8
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.
10
13
if (! SD . begin(4 )) {
11
14
Serial . println(" failed!" );
12
15
return ;
You can’t perform that action at this time.
0 commit comments