HiLetgo 2.2" 2.2 inch 4-Wire SPI TFT LCD Display Module 240x320 Chip ILI9341 51/AVR/STM32/ARM/PIC

Related posts

Feature

Durable hard PCB board and SD card socket, ideal for 5110 interface
2.4 inch TFT LCD shield without touch panel, fast to operate
Support Serial SPI Mode, Interface 4-Wire SPI, Need 4 IOs from your MCU only
Support a variety of microcontroller IO connection, professional and practical
5V compatible, use with 3.3V or 5V logic

Description

Specifications:
Resolution: 240x320
Driver IC: ILI9341
Input Voltage: 5V/3.3V
Size 2.2 inch, It has PCB backplane with power IC, SD card socket
LED Numbers 4 LEDs, Driver IC: ILI9341, Color Depth 262K/65K
Module Size:67mm(length)*40mm(width)*4mm(thickness), Active Area: 47.5mm(Length)x36.5mm(Width)

Package Included:
1*2.2" 2.2 inch 4-Wire SPI TFT LCD Display Module

How to use it?
1. use 5v to led pin, 3.3v to vcc and 1k / 1.5k resistor voltage dividers to get it to work. 1k resistor in series from Arduino to tft logic pin, 1.5k from tft pin to ground.
2.#define TFT_DC 9
#define TFT_CS 10
#define TFT_MOSI 11
#define TFT_CLK 13
#define TFT_RST 12
#define TFT_MISO 8
3.// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
//ILI9341 tft = ILI9341(TFT_CS, TFT_DC);
4.// If using the breakout, change pins as desired
ILI9341 tft = ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO).

Serial monitor output:
1-- ILI9341 Test!
Display Power Mode: 0x94
MADCTL Mode: 0x48
Pixel Format:0x5
ImageFormat: 0x80
Self Diagnostic: 0xC0
Benchmark Time (microseconds)
2-- Screen fill 18159720
Text 921664
Lines 8537648
Horiz/Vert Lines 1485756
Rectangles (outline) 946520
Rectangles (filled) 37689232
Circles (filled) 5325780
Circles (outline) 3725412
Triangles (outline) 1944508
Triangles (filled) 12525852
Rounded rects (outline) 1782700
Rounded rects (filled) 40989648