This tutorial is for the original 2.8" TFT breakout, we have an updated tutorial now at https://learn.adafruit.com/adafruit-2-dot-8-color-tft-touchscreen-breakout-v2 for the most recent version of this product, but are keeping this tutorial for historical reference
Now that the backlight is working, we can get the TFT LCD working. There are many pins required, and to keep the code running fairly fast, we have 'hardcoded' Arduino digital pins #2-#9 for the 8 data lines.

Start at the end of the TFT (other side than the power pins) and in order connect the pins to digital 7 thru 2. If you're using a mega, connect the TFT Data Pins #0-7 to Mega pins #22-29, in that order. Those Mega pins are on the 'double' header.
Then connect the next two pins to digital 9 and 8.

If you're using a mega, connect the TFT Data Pins #0-7 to Mega pins #22-29, in that order. Those Mega pins are on the 'double' header.
In addition to the 8 data lines, you'll also need 4 or 5 control lines.
  • Connect the third pin CS (Chip Select) to Analog 3
  • Connect the fourth pin C/D (Command/Data) to Analog 2
  • Connect the fifth pin WR (Write) to Analog 1
  • Connect the sixth pin RD (Read) to Analog 0
  • Connect the seventh pin RST (Reset) to the Arduino Reset line. This will reset the panel when the Arduino is Reset. You can also use a digital pin for the LCD reset but this will save us a pin.
Now we can run some code!

This guide was first published on Dec 17, 2012. It was last updated on Mar 08, 2024.

This page (TFT Wiring) was last updated on Dec 13, 2012.

Text editor powered by tinymce.