File tree Expand file tree Collapse file tree 6 files changed +0
-35
lines changed Expand file tree Collapse file tree 6 files changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,6 @@ void setup()
4444
4545
4646 Serial.print (" \n Initializing SD card..." );
47- // On the Ethernet Shield, CS is pin 4. It's set as an output by default.
48- // Note that even if it's not used as the CS pin, the hardware SS pin
49- // (10 on most Arduino boards, 53 on the Mega) must be left as an output
50- // or the SD library functions will not work.
51- pinMode (10 , OUTPUT); // change this to 53 on a mega
52-
5347
5448 // we'll use the initialization code from the utility libraries
5549 // since we're just testing if the card is working!
Original file line number Diff line number Diff line change 2323#include < SPI.h>
2424#include < SD.h>
2525
26- // On the Ethernet Shield, CS is pin 4. Note that even if it's not
27- // used as the CS pin, the hardware CS pin (10 on most Arduino boards,
28- // 53 on the Mega) must be left as an output or the SD library
29- // functions will not work.
3026const int chipSelect = 4 ;
3127
3228void setup ()
@@ -39,9 +35,6 @@ void setup()
3935
4036
4137 Serial.print (" Initializing SD card..." );
42- // make sure that the default chip select pin is set to
43- // output, even if you don't use it:
44- pinMode (10 , OUTPUT);
4538
4639 // see if the card is present and can be initialized:
4740 if (!SD.begin (chipSelect)) {
Original file line number Diff line number Diff line change 2323#include < SPI.h>
2424#include < SD.h>
2525
26- // On the Ethernet Shield, CS is pin 4. Note that even if it's not
27- // used as the CS pin, the hardware CS pin (10 on most Arduino boards,
28- // 53 on the Mega) must be left as an output or the SD library
29- // functions will not work.
3026const int chipSelect = 4 ;
3127
3228void setup ()
@@ -39,9 +35,6 @@ void setup()
3935
4036
4137 Serial.print (" Initializing SD card..." );
42- // make sure that the default chip select pin is set to
43- // output, even if you don't use it:
44- pinMode (10 , OUTPUT);
4538
4639 // see if the card is present and can be initialized:
4740 if (!SD.begin (chipSelect)) {
Original file line number Diff line number Diff line change @@ -32,11 +32,6 @@ void setup()
3232
3333
3434 Serial.print (" Initializing SD card..." );
35- // On the Ethernet Shield, CS is pin 4. It's set as an output by default.
36- // Note that even if it's not used as the CS pin, the hardware SS pin
37- // (10 on most Arduino boards, 53 on the Mega) must be left as an output
38- // or the SD library functions will not work.
39- pinMode (10 , OUTPUT);
4035
4136 if (!SD.begin (4 )) {
4237 Serial.println (" initialization failed!" );
Original file line number Diff line number Diff line change @@ -33,11 +33,6 @@ void setup()
3333
3434
3535 Serial.print (" Initializing SD card..." );
36- // On the Ethernet Shield, CS is pin 4. It's set as an output by default.
37- // Note that even if it's not used as the CS pin, the hardware SS pin
38- // (10 on most Arduino boards, 53 on the Mega) must be left as an output
39- // or the SD library functions will not work.
40- pinMode (10 , OUTPUT);
4136
4237 if (!SD.begin (4 )) {
4338 Serial.println (" initialization failed!" );
Original file line number Diff line number Diff line change @@ -35,11 +35,6 @@ void setup()
3535 }
3636
3737 Serial.print (" Initializing SD card..." );
38- // On the Ethernet Shield, CS is pin 4. It's set as an output by default.
39- // Note that even if it's not used as the CS pin, the hardware SS pin
40- // (10 on most Arduino boards, 53 on the Mega) must be left as an output
41- // or the SD library functions will not work.
42- pinMode (10 , OUTPUT);
4338
4439 if (!SD.begin (4 )) {
4540 Serial.println (" initialization failed!" );
You can’t perform that action at this time.
0 commit comments