Add some jazz & pizazz to your project with a color touchscreen LCD. This TFT display is big (2.8" diagonal) bright (4 white-LED backlight) and colorful! 240x320 pixels with individual RGB pixel control, this has way more resolution than a black and white 128x64 display. As a bonus, this display has a resistive touchscreen attached to it already, so you can detect finger presses anywhere on the screen.
This display has a controller built into it with RAM buffering, so that almost no work is done by the microcontroller. The display can be used in two modes: 8-bit and SPI. For 8-bit mode, you'll need 8 digital data lines and 4 or 5 digital control lines to read and write to the display (12 lines total). SPI mode requires only 5 pins total (SPI data in, data out, clock, select, and d/c) but is slower than 8-bit mode. In addition, 4 pins are required for the touch screen (2 digital, 2 analog).
It is an easy-to-use breakout board, with SPI connections on one end and 8-bit on the other. Both are 3-5V compliant with high-speed level shifters so you can use with any microcontroller. If you're going with SPI mode, you can also take advantage of the onboard MicroSD card socket to display images. (microSD card not included, but any will work)
For 8-bit interface fans Adafruit written a full open source graphics library that can draw pixels, lines, rectangles, circles, text, and more. For SPI users, Adafruit have a library as well, its separate from the 8-bit library since both versions are heavily optimized. Adafruit also have a touch screen library that detects x, y and z (pressure) and example code to demonstrate all of it.
Follow Adafruit step by step guide for wiring, code and drawing. You'll be running in 15 minutes
- 2.8" diagonal LCD TFT display
- 240x320 resolution, 18-bit (262,000) color capable - our code uses only 16-bits since its faster.
- ILI9341 (datasheet) controller with built in video RAM buffer
- 8 bit digital interface, plus 4 or 5 control lines (12 pins minimum) or SPI mode with 4 or 5 SPI data/control lines (4 pins minimum) - not including the touch screen.
- 5V compatible! Use with 3.3V or 5V logic such as an Arduino
- Onboard 3.3V @ 150mA LDO regulator
- 4 white LED backlight, transistor connected so you can PWM dim the backlight
- 1x20 headers for easy breadboarding
- 4-wire resistive touchscreen