Color 320x240 TFT Touchscreen, ILI9341 Controller Chip
DISPLAY_ILI9341_TOUCH_28
|
Color 320x240 Touchscreen, 2.8 inch, ILI9341 Controller | $16 | ||||||
DISPLAY_ILI9341_TOUCH_32
|
Color 320x240 Touchscreen, 3.2 inch, ILI9341 Controller | $18 |
This 320x240 color TFT display is recommended for use with Teensy 3.2 to Teensy 4.1, for high resolution color graphics.
Software
These displays can be used with the Adafruit_ILI9341 library or Optimized ILI9341 library (included with Teensyduino install).
The XPT2046 touch controller can be read with this XPT2046_Touchscreen library (included with Teensyduino install).
ILI9341_t3 supports large high-res fonts. A library of additional fonts is available, as well as huge collection of Google fonts, and even more fonts here. There's also an alternate https://forum.pjrc.com/threads/39804-ILI9341-font-builder, in addition to ttf_to_ili9341.pl.
Two alternate optimized libraries are available, from Frank B and KurtE.
Teensy 3.2 and
purple test board
are not included with this $16 display purchase.
Connections
ILI9341 Pin | Teensy 3.x and 4.x Standard | Teensy 3.x Audio Board | Notes |
---|---|---|---|
VCC | VIN | VIN | Power: 3.6 to 5.5 volts |
GND | GND | GND | |
CS | 10 | 21 | Alternate Pins: 9, 15, 20, 21 |
RESET | +3.3V | +3.3V | |
D/C | 9 | 20 | Alternate Pins: 10, 15, 20, 21 |
SDI (MOSI) | 11 (DOUT) | 7 | |
SCK | 13 (SCK) | 14 | |
LED | VIN | VIN | Use 100 ohm resistor |
SDO (MISO) | 12 (DIN) | 12 | |
T_CLK | 13 (SCK) | 14 | |
T_CS | 8 | 8 | Alternate: any digital pin |
T_DIN | 11 (DOUT) | 7 | |
T_DO | 12 (DIN) | 12 | |
T_IRQ | 2 | 2 | Optional: can use any digital pin |
Caution: Use only 3.3V signals with this display. CS, D/C, SDI, SCK, T_CLK, T_CS, T_DIN are NOT 5 volt tolerant. We recommend using this display only with Teensy LC, 3.x, and 4.x. It should not be used with 5V boards like Teensy 2.0 and Arduino Uno.
We do not recommend using the SD card socket on this display. It does not work, but this hardware modification may be able to get it working.
This ILI3941 display works well with Teensy 4.0 and 4.1, using the standard connections shown in the table.
Usage With Audio Board Connections
To use the ILI9341 display with the Audio Board, connect the signals using the alternate pins shown above.For use with the Teensy 3.x optimized library, use this 6 pin constructor code.
// For optimized ILI9341_t3 library #define TFT_DC 20 #define TFT_CS 21 #define TFT_RST 255 // 255 = unused, connect to 3.3V #define TFT_MOSI 7 #define TFT_SCLK 14 #define TFT_MISO 12 ILI9341_t3 tft = ILI9341_t3(TFT_CS, TFT_DC, TFT_RST, TFT_MOSI, TFT_SCLK, TFT_MISO);
For use with Adafruit's original ILI9341 library, in setup() before calling TFT.begin(), use SPI.setMOSI(7) and SPI.setSCK(14) to configure the SPI library for these alternate pins.
// For Adafruit's ILI9341 library #define TFT_DC 20 #define TFT_CS 21 Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC); void setup() { SPI.setMOSI(7); SPI.setSCK(14); tft.begin();
Dimensions
The active screen area is approximately 2.8 or 3.2 inches diagonal.
High-Res Fonts
Many additional fonts are available in this library of additional fonts and Frank's huge collection of Google fonts.All fonts are available in these sizes: 8, 9, 10, 11, 12, 13, 14, 16, 18, 20, 24, 28, 32, 40, 48, 60, 72, 96
These images are only a small sample of the many fonts available: