Permalink
Browse files

last example to fix

  • Loading branch information...
1 parent 7838b6d commit 418ae2f9132cae2cccdb41855eac946b7dbb8912 @ladyada ladyada committed Apr 4, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 examples/tftbmp/tftbmp.pde
@@ -28,10 +28,11 @@ For Mega's use pins 22 thru 29 (on the double header at the end)
// In the SD card, place 24 bit color BMP files (be sure they are 24-bit!)
// There are examples in the sketch folder
-#include "TFTLCD.h"
+#include "Adafruit_GFX.h"
+#include "Adafruit_TFTLCD.h"
// our TFT wiring
-TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, 0);
+Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, 0);
// the file itself
File bmpFile;
@@ -59,7 +60,7 @@ void setup()
while (1);
}
- tft.initDisplay();
+ tft.begin();
Serial.print("Initializing SD card...");
pinMode(10, OUTPUT);
@@ -270,4 +271,3 @@ uint32_t read32(File f) {
return d;
}
-

0 comments on commit 418ae2f

Please sign in to comment.