Adafruit ILI9341 TFT Library






Graphics Test
by lady ada
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.

Our github repository contains all the code and examples you'll need for driving the TFT.

Install Libraries

You'll need a few libraries to use this display
From within the Arduino IDE, open up the Library Manager...
adafruit_products_managelib.png

Install Adafruit ILI9341 TFT Library

We have example code ready to go for use with these TFTs.

Two libraries need to be downloaded and installed: first is the Adafruit ILI9341 library (this contains the low-level code specific to this device), and second is the Adafruit GFX Library (which handles graphics operations common to many displays we carry). If you have Adafruit_GFXalready, make sure its the most recent version since we've made updates for better performance
Search for ILI9341 and install the Adafruit ILI9341 library that pops up!
adafruit_products_ililib.png
Next up, search for Adafruit GFX and locate the core library. A lot of libraries may pop up because we reference it in the description so just make sure you see Adafruit GFX Library in bold at the top.
Install it!
adafruit_products_gfxlib.png
Repeat this process one more time, looking for the Adafruit_ZeroDMA library. Install that one too.
Restart the Arduino software. You should see a new example folder called Adafruit_ILI9341 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.
adafruit_products_lines.jpg
adafruit_products_ilitest.png
This guide was first published on Jan 03, 2014. It was last updated on Jan 03, 2014.This page (Graphics Test) was last updated on Jul 10, 2019.