1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

bug fixes to SD library examples

This commit is contained in:
Tom Igoe
2010-12-03 15:29:56 -05:00
parent 86e3d4ad7a
commit 4d3b263738
3 changed files with 18 additions and 15 deletions

View File

@ -30,7 +30,8 @@ void setup()
// 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.
pinMode(10, OUTPUT);
if (!SD.begin(4)) {
Serial.println("initialization failed!");
return;