Skip to content

Commit 7a178a5

Browse files
committed
Partially revert "Removing useless includes from examples"
This allows example to continue to work with older IDE. This partially reverts commit 46cb5f0.
1 parent 72600a0 commit 7a178a5

File tree

19 files changed

+19
-0
lines changed

19 files changed

+19
-0
lines changed

libraries/SD/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:

libraries/SD/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
const int chipSelect = 4;

libraries/SD/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
const int chipSelect = 4;

libraries/SD/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;

libraries/SD/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;

libraries/SD/examples/listfiles/listfiles.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
This example code is in the public domain.
2222
2323
*/
24+
#include <SPI.h>
2425
#include <SD.h>
2526

2627
File root;

libraries/TFT/examples/Arduino/TFTBitmapLogo/TFTBitmapLogo.ino

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

2222
// include the necessary libraries
23+
#include <SPI.h>
2324
#include <SD.h>
2425
#include <TFT.h> // Arduino LCD library
2526

libraries/TFT/examples/Arduino/TFTColorPicker/TFTColorPicker.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
// #define rst 1
2626

2727
#include <TFT.h> // Arduino LCD library
28+
#include <SPI.h>
2829

2930
TFT TFTscreen = TFT(cs, dc, rst);
3031

libraries/TFT/examples/Arduino/TFTDisplayText/TFTDisplayText.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717

1818
#include <TFT.h> // Arduino LCD library
19+
#include <SPI.h>
1920

2021
// pin definition for the Uno
2122
#define cs 10

libraries/TFT/examples/Arduino/TFTEtchASketch/TFTEtchASketch.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
#include <TFT.h> // Arduino LCD library
18+
#include <SPI.h>
1819

1920
// pin definition for the Uno
2021
#define cs 10

0 commit comments

Comments
 (0)