Skip to content

Commit e0f9679

Browse files
committed
Fixed SD examples. (added include for SPI lib)
1 parent 9ceb201 commit e0f9679

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

libraries/SD/examples/CardInfo/CardInfo.ino

+1
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:

libraries/SD/examples/Datalogger/Datalogger.ino

+1
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

libraries/SD/examples/DumpFile/DumpFile.ino

+1
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

libraries/SD/examples/Files/Files.ino

+1
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;

libraries/SD/examples/ReadWrite/ReadWrite.ino

+1
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;

libraries/SD/examples/listfiles/listfiles.ino

+1
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)