2.2 tft display factory
The DT022BTFT uses the same connections as the DT022CTFT, with the exception of the backlight (which has connections shown in the Displaytech datasheet).
The provided display driver example code is designed to work with Microchip, however it is generic enough to work with other micro-controllers. The code includes display reset sequence, initialization and example PutPixel() function. Keep the default values for all registers in the ILI9341, unless changed by the example code provided.
Note that the WR pin becomes the D/CX signal in serial mode. CS is used to initiate a data transfer by pulling it low. At the end of the data transfer, pull the CS pin high to complete the transaction. The timing diagram indicates that you can pull the CS pin high in between the command byte and data bytes within a transfer, but it is unlikely needed if the display is the only device on the SPI bus. To keep things simple, we suggest to leave it low during the entire transaction.
2) If the display panel is damaged and the liquid crystal substance leaks out, be sure not to get any in your mouth. If the substance contacts your skin or clothes, wash it off using soap and water.
3) Do not apply excessive force to the display surface or the adjoining areas since this may cause the color tone to vary. Do not touch the display with bare hands. This will stain the display area and degraded insulation between terminals (some cosmetics are determined to the polarizer).
4) The polarizer covering the display surface of the LCD module is soft and easily scratched. Handle this polarizer carefully. Do not touch, push or rub the exposed polarizers with anything harder than an HB pencil lead (glass, tweezers, etc.). Do not put or attach anything on the display area to
5) If the display surface becomes contaminated, breathe on the surface and gently wipe it with a soft dry cloth. If it is heavily contaminated, moisten cloth with one of the following solvents
- The LCD module is coated with a film to protect the display surface. Exercise care when peeling off this protective film since static electricity may be generated.
The graphic display coordinates and the text display coordinates of the 2.2”screen are two different coordinates systems. The origin of the graphic display coordinates begin from the centre point of the screen while that of the later one begins from the top left hand side of the screen.
The following codes are just one part of the API funciotn description. For more information, please refer to ST7687S Library Introduction and Display Library Introduction.
* @The formal parameter size refers to the text size based on the font(6×8). Size is rounded to the integer greater than 0; if size is 1, the pixel points the font occupied will be 6×8. if it is 2, that will be 12×16. The text out of the screen cannot be displayed;
The function of the program: realize the refreshing of the background color of the 2.2”screen and the switching of background color among red, white and black; there are 19 common defined color in the library, and users can also customize 4-bit hexadecimal code or decimal color code (0~65535) to alter the background color of the screen.
The function of the program: taking the centre point of the 2.2”screen as the starting point(note: the graphic display coordinates and the text display coordinates are two different coordinates, the centre point of the graphic display coordinates is (64, 64) while that of the later one is (0, 0)), display a character string ”fire” with red text background box, white font and the size of the font 2 on the screen. The formal parameter size of the function to set font size tft.setTextSize (uint8_t size) should be greater than 0 and the text out of the screen cannot be displayed.
The function of the program: use the software image2lcd.exe to extract the bitmap of one image and display it on the centre part of the 2.2”screen(note: for the reason of UNO’s internal memory, the following demo cannot be accepted on UNO since the image file is too large, but it can be displayed on ESP32. So you’d better choose small image file if you want to display it on UNO. ) The parameter selection of the software is provided below.
ER-TFT022-1 is 240x320 dots 2.2" color tft lcd module display with ILI9341 controller,optional capacitive touch panel with controller FT6236U and resistive touch panel,superior display quality,super wide viewing angle and easily controlled by MCU such as 8051, PIC, AVR, ARDUINO ARM and Raspberry PI.It can be used in any embedded systems,industrial device,security and hand-held equipment which requires display in high quality and colorful image.It supports 8080 8-bit,9-bit,16-bit,18-bit parallel,3-wire,4-wire serial spi interface. FPC with zif connector is easily to assemble or remove.Lanscape mode is also available.
Of course, we wouldn"t just leave you with a datasheet and a "good luck!".Here is the link for 2.2"TFT Shield with Libraries, Examples.Schematic Diagram for Arduino Due,Mega 2560 and Uno.For 8051 microcontroller user,we prepared the detailed tutorial such as interfacing, demo code and Development Kit at the bottom of this page.
A full color 240xRGBx320 pixel TFT display module with 2.2" diagonal active area. Very small text and images look sharp on this graphic display, with its dense pixel pitch of 0.141 x 0.141 millimeters. The TFT"s 6:00 o" clock viewing direction works well for devices that must be easy to read above eye level without fading, such as signal analyzers or other benchtop laboratory equipment.
With a built-in Sitronix ST7789V or compatible display controller, the logic voltage range of 2.5v to 3.3v allows direct connection to 3.3v processors.
Buy with confidence. Our Logistics department is experienced at sending products anywhere in the world where permitted. This TFT display module has a limited 1-year warranty and free technical support.