File tree Expand file tree Collapse file tree 7 files changed +29
-6
lines changed Expand file tree Collapse file tree 7 files changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ void setup() {
52
52
Serial.println (" * is a card inserted?" );
53
53
Serial.println (" * is your wiring correct?" );
54
54
Serial.println (" * did you change the chipSelect pin to match your shield or module?" );
55
+ Serial.println (" Note: press reset button on the board and reopen this serial monitor after fixing your issue!" );
55
56
while (1 );
56
57
} else {
57
58
Serial.println (" Wiring is correct and a card is present." );
Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ void setup() {
37
37
38
38
// see if the card is present and can be initialized:
39
39
if (!SD.begin (chipSelect)) {
40
- Serial.println (" Card failed, or not present" );
40
+ Serial.println (" initialization failed. Things to check:" );
41
+ Serial.println (" 1. is a card inserted?" );
42
+ Serial.println (" 2. is your wiring correct?" );
43
+ Serial.println (" 3. did you change the chipSelect pin to match your shield or module?" );
44
+ Serial.println (" Note: press reset button on the board and reopen this serial monitor after fixing your issue!" );
41
45
// don't do anything more:
42
46
while (1 );
43
47
}
Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ void setup() {
37
37
38
38
// see if the card is present and can be initialized:
39
39
if (!SD.begin (chipSelect)) {
40
- Serial.println (" Card failed, or not present" );
40
+ Serial.println (" initialization failed. Things to check:" );
41
+ Serial.println (" 1. is a card inserted?" );
42
+ Serial.println (" 2. is your wiring correct?" );
43
+ Serial.println (" 3. did you change the chipSelect pin to match your shield or module?" );
44
+ Serial.println (" Note: press reset button on the board and reopen this serial monitor after fixing your issue!" );
41
45
// don't do anything more:
42
46
while (1 );
43
47
}
Original file line number Diff line number Diff line change @@ -33,7 +33,11 @@ void setup() {
33
33
Serial.print (" Initializing SD card..." );
34
34
35
35
if (!SD.begin (4 )) {
36
- Serial.println (" initialization failed!" );
36
+ Serial.println (" initialization failed. Things to check:" );
37
+ Serial.println (" 1. is a card inserted?" );
38
+ Serial.println (" 2. is your wiring correct?" );
39
+ Serial.println (" 3. did you change the chipSelect pin to match your shield or module?" );
40
+ Serial.println (" Note: press reset button on the board and reopen this serial monitor after fixing your issue!" );
37
41
while (1 );
38
42
}
39
43
Serial.println (" initialization done." );
Original file line number Diff line number Diff line change @@ -40,9 +40,15 @@ void setup() {
40
40
// set LED pin to output, used to blink when writing
41
41
pinMode (LED_BUILTIN, OUTPUT);
42
42
43
+ Serial.print (" Initializing SD card..." );
44
+
43
45
// init the SD card
44
46
if (!SD.begin ()) {
45
- Serial.println (" Card failed, or not present" );
47
+ Serial.println (" initialization failed. Things to check:" );
48
+ Serial.println (" 1. is a card inserted?" );
49
+ Serial.println (" 2. is your wiring correct?" );
50
+ Serial.println (" 3. did you change the chipSelect pin to match your shield or module?" );
51
+ Serial.println (" Note: press reset button on the board and reopen this serial monitor after fixing your issue!" );
46
52
// don't do anything more:
47
53
while (1 );
48
54
}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ void setup() {
38
38
Serial.println (" 1. is a card inserted?" );
39
39
Serial.println (" 2. is your wiring correct?" );
40
40
Serial.println (" 3. did you change the chipSelect pin to match your shield or module?" );
41
- Serial.println (" Note: press reset or reopen this serial monitor after fixing your issue!" );
41
+ Serial.println (" Note: press reset button on the board and reopen this serial monitor after fixing your issue!" );
42
42
while (1 );
43
43
}
44
44
Original file line number Diff line number Diff line change @@ -36,7 +36,11 @@ void setup() {
36
36
Serial.print (" Initializing SD card..." );
37
37
38
38
if (!SD.begin (4 )) {
39
- Serial.println (" initialization failed!" );
39
+ Serial.println (" initialization failed. Things to check:" );
40
+ Serial.println (" 1. is a card inserted?" );
41
+ Serial.println (" 2. is your wiring correct?" );
42
+ Serial.println (" 3. did you change the chipSelect pin to match your shield or module?" );
43
+ Serial.println (" Note: press reset button on the board and reopen this serial monitor after fixing your issue!" );
40
44
while (1 );
41
45
}
42
46
Serial.println (" initialization done." );
You can’t perform that action at this time.
0 commit comments