Skip to content

Commit 2994e1f

Browse files
committed
Fixed SD examples. (added include for SPI lib)
1 parent 3906f23 commit 2994e1f

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

examples/CardInfo/CardInfo.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
by Tom Igoe
2121
*/
2222
// include the SD library:
23+
#include <SPI.h>
2324
#include <SD.h>
2425

2526
// set up variables using the SD utility library functions:

examples/Datalogger/Datalogger.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
2121
*/
2222

23+
#include <SPI.h>
2324
#include <SD.h>
2425

2526
// On the Ethernet Shield, CS is pin 4. Note that even if it's not

examples/DumpFile/DumpFile.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
2121
*/
2222

23+
#include <SPI.h>
2324
#include <SD.h>
2425

2526
// On the Ethernet Shield, CS is pin 4. Note that even if it's not

examples/Files/Files.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
This example code is in the public domain.
1818
1919
*/
20+
#include <SPI.h>
2021
#include <SD.h>
2122

2223
File myFile;

examples/ReadWrite/ReadWrite.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
1919
*/
2020

21+
#include <SPI.h>
2122
#include <SD.h>
2223

2324
File myFile;

examples/listfiles/listfiles.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
This example code is in the public domain.
1818
1919
*/
20+
#include <SPI.h>
2021
#include <SD.h>
2122

2223
File root;

0 commit comments

Comments
 (0)