mirror of https://github.com/noisymime/Arduino.git
Adding warning about leaving the hardware SS pin as an output.
This commit is contained in:
parent
29384e2f61
commit
012b4b0f0f
|
@ -6,7 +6,10 @@ void setup()
|
||||||
{
|
{
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
Serial.print("Initializing SD card...");
|
Serial.print("Initializing SD card...");
|
||||||
// On the Ethernet Shield, CS is pin 4.
|
// On the Ethernet Shield, CS is pin 4. Note that even if it's not
|
||||||
|
// used as the CS pin, the hardware SS pin (10 on most Arduino boards,
|
||||||
|
// 53 on the Mega) must be left as an output or the SD library
|
||||||
|
// functions will not work.
|
||||||
if (!SD.begin(4)) {
|
if (!SD.begin(4)) {
|
||||||
Serial.println("failed!");
|
Serial.println("failed!");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -6,7 +6,10 @@ void setup()
|
||||||
{
|
{
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
Serial.print("Initializing SD card...");
|
Serial.print("Initializing SD card...");
|
||||||
// On the Ethernet Shield, CS is pin 4.
|
// On the Ethernet Shield, CS is pin 4. Note that even if it's not
|
||||||
|
// used as the CS pin, the hardware SS pin (10 on most Arduino boards,
|
||||||
|
// 53 on the Mega) must be left as an output or the SD library
|
||||||
|
// functions will not work.
|
||||||
if (!SD.begin(4)) {
|
if (!SD.begin(4)) {
|
||||||
Serial.println("failed!");
|
Serial.println("failed!");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue