mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Adding warning about leaving the hardware SS pin as an output.
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user