LCD Test

We have a library with example code ready to go for use with these TFTs. The library is not incredibly fast and optimized but its a good start and can easily be ported to other micrcontrollers. However, we'll assume you're using an Arduino.

Visit our github repository and click on the Downloads button in the top right corner to download a zip of the library and examples. Uncompress the folder and rename it TFTLCD make sure that inside that folder is the cpp and .h files. Then copy it to your arduinosketchfolder/libraries folder. See our tutorial for more details.

You will also need to get the GFX graphics core and click on the Downloads button in the top right corner to download a zip of the library and examples. Uncompress the folder and rename it Adafruit_GFX make sure that inside that folder is the cpp and .h files. Then copy it to your arduinosketchfolder/libraries folder.
For this shield, there is one more step! Open up the TFTLCD.h file in the libraries folder and uncomment the line at the top that says:
//comment or uncomment the next line for special pinout! 
#define USE_ADAFRUIT_SHIELD_PINOUT
Restart the Arduino software. You should see a new example folder called TFTLCD and inside, an example called graphicstest. Upload that sketch to your Arduino. You should see a collection of graphical tests draw out on the TFT.
Last updated on May 04, 2015 Published on Nov 30, 2012