File tree 7 files changed +1
-36
lines changed
7 files changed +1
-36
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,6 @@ void setup()
44
44
45
45
46
46
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
-
53
47
54
48
// we'll use the initialization code from the utility libraries
55
49
// since we're just testing if the card is working!
Original file line number Diff line number Diff line change 23
23
#include < SPI.h>
24
24
#include < SD.h>
25
25
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.
30
26
const int chipSelect = 4 ;
31
27
32
28
void setup ()
@@ -39,9 +35,6 @@ void setup()
39
35
40
36
41
37
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);
45
38
46
39
// see if the card is present and can be initialized:
47
40
if (!SD.begin (chipSelect)) {
Original file line number Diff line number Diff line change 23
23
#include < SPI.h>
24
24
#include < SD.h>
25
25
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.
30
26
const int chipSelect = 4 ;
31
27
32
28
void setup ()
@@ -39,9 +35,6 @@ void setup()
39
35
40
36
41
37
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);
45
38
46
39
// see if the card is present and can be initialized:
47
40
if (!SD.begin (chipSelect)) {
Original file line number Diff line number Diff line change @@ -32,11 +32,6 @@ void setup()
32
32
33
33
34
34
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);
40
35
41
36
if (!SD.begin (4 )) {
42
37
Serial.println (" initialization failed!" );
Original file line number Diff line number Diff line change @@ -33,11 +33,6 @@ void setup()
33
33
34
34
35
35
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);
41
36
42
37
if (!SD.begin (4 )) {
43
38
Serial.println (" initialization failed!" );
Original file line number Diff line number Diff line change @@ -35,11 +35,6 @@ void setup()
35
35
}
36
36
37
37
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);
43
38
44
39
if (!SD.begin (4 )) {
45
40
Serial.println (" initialization failed!" );
Original file line number Diff line number Diff line change 1
1
name =SD
2
- version =1.0.1
2
+ version =1.0.2
3
3
author =Arduino, SparkFun
4
4
maintainer =Arduino <info@arduino.cc>
5
5
sentence =Enables reading and writing on SD cards. For all Arduino boards.
You can’t perform that action at this time.
0 commit comments