Skip to content

Commit 418ae2f

Browse files
committed
last example to fix
1 parent 7838b6d commit 418ae2f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/tftbmp/tftbmp.pde

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ For Mega's use pins 22 thru 29 (on the double header at the end)
2828
// In the SD card, place 24 bit color BMP files (be sure they are 24-bit!)
2929
// There are examples in the sketch folder
3030

31-
#include "TFTLCD.h"
31+
#include "Adafruit_GFX.h"
32+
#include "Adafruit_TFTLCD.h"
3233

3334
// our TFT wiring
34-
TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, 0);
35+
Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, 0);
3536

3637
// the file itself
3738
File bmpFile;
@@ -59,7 +60,7 @@ void setup()
5960
while (1);
6061
}
6162

62-
tft.initDisplay();
63+
tft.begin();
6364

6465
Serial.print("Initializing SD card...");
6566
pinMode(10, OUTPUT);
@@ -270,4 +271,3 @@ uint32_t read32(File f) {
270271
return d;
271272
}
272273

273-

0 commit comments

Comments
 (0)