Library / SDK
adafruit/Adafruit_ILI9341 avatar
adafruit/Adafruit_ILI9341

Adafruit ILI9341 for Arduino displays over SPI

Library for Adafruit ILI9341 displays

507 stars291 forksC++License varies

At a glance

What is it?
Adafruit ILI9341 gives Arduino sketches a GFX drawing interface for supported TFT panels. Its graphics example is the starting point for checking the display before adding touch or image loading.
Who is it for?
Use Adafruit ILI9341 for a supported TFT panel on an Arduino project that already uses GFX or wants its drawing API. A project centered on a different display controller needs a compatible driver.
Can I use it commercially?
The repository metadata does not identify a licence. Check the project’s published terms and any component-specific licences before reuse.
Is it still maintained?
Yes. The repository last received commits 5 days ago.
What is it written in?
Mainly C++, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

Editorial analysis

The display driver in an Arduino sketch

Adafruit ILI9341 connects Arduino graphics code to the display controller used on several Adafruit TFT products. The upstream README lists the 2.8-inch Touch Shield V2, the 2.4-inch and 2.8-inch touchscreen breakouts, and the 2.4-inch TFT FeatherWing. These boards package the display differently, so the product wiring guide is part of selecting the right sketch configuration. A sketch written for the shield's pin assignments needs to be adjusted before it is used on a breakout with different wiring.

The division of work is visible in the header. The display class inherits from Adafruit_SPITFT, which puts shared display transport and graphics infrastructure below the controller-specific class. The graphics test uses the resulting object to draw shapes and text. A developer building a small embedded status display can use those drawing operations while leaving panel setup to the driver. Controller-specific diagnostics remain available on the same object, which helps when a sketch compiles but the display stays blank.

What the ILI9341 receives during drawing

In the tagged implementation, begin initializes the transport and walks the ILI9341 initialization command list. The default SPI clock is selected by conditional compilation, so the number used on one board should not be used to predict throughput on another. The library accepts a frequency argument to begin. Establish that the upstream graphics example works with the default before making the bus frequency another variable in a board bring-up.

The address-window method takes an origin, width, and height. It derives the inclusive end coordinates and issues the controller's column and page address commands as needed, then selects the memory write operation. That window determines where subsequent pixel data lands. Rotation changes the controller's memory access settings and updates the logical dimensions the drawing code sees. Coordinate calculations in a sketch that switches orientation should therefore use its current display dimensions, particularly when a control is anchored to the right or bottom edge.

Bring up the shield with graphicstest

The README's manual installation places the uncompressed Adafruit_ILI9341 folder under the Arduino sketchbook's libraries directory and restarts the IDE. The README calls out Adafruit GFX. The 1.7.0 library.properties also lists Adafruit STMPE610, Adafruit TouchScreen, and Adafruit TSC2007, which are worth checking when copying libraries by hand and compiling the bundled examples.

Open examples/graphicstest/graphicstest.ino and check its defaults against the specific hardware. The shield configuration in the sketch sets data/command to pin 9 and chip select to pin 10. Its two-argument constructor chooses hardware SPI. The example identifies Uno hardware SPI pins in a comment and includes a commented constructor for a breakout with explicit SPI pins. Upload the example with the wiring checked against the product guide. The sketch calls tft.begin(), prints several display-register values to Serial at 9600 baud, and runs drawing routines. Watch for the graphics on the panel as well as the serial output. The upstream example prints time measurements for its own drawing workload, so their value is in comparing runs on a defined setup.

Touch and bitmap loading use separate examples

A working graphics test confirms a drawing path. The same result leaves touch input to be checked independently. The repository has separate touch-paint examples for different hardware arrangements, including breakout and FeatherWing variants. It is useful to bring up the panel with graphicstest first, then choose a touch example based on the actual board. This narrows the number of connections and device settings involved when diagnosing a failed first upload.

The README directs readers looking for BMP loading examples to Adafruit_ImageReader. An application that displays files from storage has another integration step beyond writing graphics primitives. The repository also lists a pictureEmbed example. An application that ships fixed artwork and one that loads images from removable storage have different requirements, even if they use the same panel.

Version 1.7.0 and the TFT_eSPI configuration model

The release record and library.properties both identify 1.7.0. The README attributes the code to Limor Fried for Adafruit Industries and describes it as MIT licensed, with a notice to retain the README attribution text in redistribution. For a firmware project that vendors its Arduino dependencies, keep that notice alongside the pinned source and keep track of the corresponding GFX version.

TFT_eSPI also lists ILI9341 setups, including ESP32-S2 and ESP32-S3 examples. Its documented setup files put board and display choices in the library configuration. Adafruit's graphicstest shows the shield's chip-select and data-command pins where the display object is constructed. That difference matters if a project keeps hardware choices in each sketch or already manages a common TFT_eSPI setup for a board family. Check both the panel controller and the target board before transferring an example between the libraries.

Editorial conclusion

Use Adafruit ILI9341 for a supported TFT panel on an Arduino project that already uses GFX or wants its drawing API. A project centered on a different display controller needs a compatible driver. Before adopting the library, match the panel to its product wiring guide and check the constructor and pin assignments in graphicstest.

Frequently asked questions

Does Adafruit ILI9341 require Adafruit GFX?

Yes. The README calls it out as a dependency and the class inherits from Adafruit_SPITFT.

Which Adafruit ILI9341 example checks the display?

The graphicstest sketch initializes the display, prints diagnostic register values, and runs graphics drawing routines.

Where are the BMP examples for Adafruit ILI9341 displays?

The README points to Adafruit_ImageReader for the BMP image-loading examples.

Official sources

  1. adafruit/Adafruit_ILI9341 on GitHub
  2. Issues
  3. README
  4. Releases

Was this useful?