Skip to main content 2.2" TFT Display Arduino Code
Overview
Pinouts
EYESPI
Plugging in an EYESPI Cable
Assembly
Arduino Wiring
Arduino Code
Adafruit GFX Library
Bitmaps
CircuitPython Displayio Quickstart
Python Wiring and Setup
Python Usage
Troubleshooting
Downloads
Single page
Feedback? Corrections?
Text View
Featured Products view all
Your browser does not support the video tag. 2.2" 18-bit color TFT LCD display with microSD card breakout $24.95 Add to Cart
Breadboarding wire bundle $4.95 Add to Cart
Adafruit METRO 328 Fully Assembled - Arduino IDE compatible Out of Stock
Half Sized Premium Breadboard - 400 Tie Points $4.95 Add to Cart
26 Beginner Product guide 😍2
Arduino Code
Once you have the display wired up, its time to test your wiring by uploading the example code we have written. Again, we suggest using an Arduino to test.
Install Library
Go to the Arduino Library manager under Sketch → Include Library → Manage Libraries...
From within the Library manager, start by installing Adafruit GFX:
Then look for and install the Adafruit ILI9341 library
Note that this display has an ILI9340 but we still use the ILI9341 library, it's OK! The chips are nearly identical
If using an older Arduino IDE (pre-1.8.10), also locate and install Adafruit_BusIO (newer versions do this one automatically).
You can read more about installing libraries in our tutorial.
Run Graphics Test
Restart the Arduino IDE. You should now be able to select File → Examples → Adafruit_ILI9341 → graphicstest sketch. Upload the sketch to your Arduino wired as beforeOnce uploaded, the Arduino should perform all the test display procedures! If you're not seeing anything - first check if you have the backlight on, if the backlight is not lit something is wrong with the power/backlight wiring. If the backlight is lit but you see nothing on the display make sure you're using our suggested wiring.
Page last edited March 08, 2024
Text editor powered by tinymce.
Arduino Wiring Adafruit GFX Library Related Guides WiFi Candy Bowl Monitor By Tony DiCola beginner Adafruit 4-Channel ADC Breakouts By Liz Clark beginner Arduino Lesson 5. The Serial Monitor By Simon Monk beginner Tiny Arduino Music Visualizer By Phillip Burgess beginner Adafruit INA219 Current Sensor Breakout By lady ada beginner LSM303 Accelerometer + Compass Breakout By Bill Earl intermediate Adafruit 1.27" and 1.5" Color OLED Breakout Board By Bill Earl beginner Adafruit IO Basics: NeoPixel Controller By Tyler Cooper beginner Memories of an Arduino By Bill Earl beginner 2.8" TFT Touch Shield By lady ada beginner Electronic Demon Costume By Phillip Burgess beginner Babel Fish By Becky Stern beginner Your browser does not support the video tag. This links to the guide Using NeoPixels and Servos Together. Using NeoPixels and Servos Together By Phillip Burgess intermediate Bluetooth Temperature & Humidity Sensor By M. Schwartz intermediate Ladyada's Bento Box By lady ada beginner