How To Use 2.4 inch mcufriend TFT LCD

How To Use 2.4 inch mcufriend TFT LCD

Write By: TECH-TEAM Published In: ROOT Created Date: 2015-05-13 Hits: 29861 Comment: 0

How To Use 2.4 inch mcufriend TFT LCD with Arduino

How To Use 2.4 inch Kedei TFT LCD with Arduino

BUY IT

THIS IS VALID ONLY FOR LCD SOLD BY OUR STORE HOWEVER IT MIGHT WORK WITH ANOTHER LCD as well Depending DISPLAY IC USED(LCD DRIVER) in TFT

If You Bough it Recently from after 30-July-2017, DownLoad Library  from HERE

 

 

If You Bough it Recently from till 30-July-2017, DownLoad Library  from HERE 

 

Unzip the library folder and extract below three folder into arduino library folder.

  1. Adafruit-GFX-Library-master
  2. Touch-Screen-Library-master
  3. SWTFT

 Open Arduino IDE , Go to File-> Examples -> SWIFT

a) open graphicstest for Graphics display on TFT

b) tftpaint

Other Tye Available in Market: Try below Libraries:

TFT LCD SPFD5408 library With Arduino Uno and Mega click HERE

other type:

Type1: if it is marked on back side of tft as mcufried or ili9341 / ili9340 so follow below else scroll down and see Type 2:

This is 2.4" color TFT LCD, and a touch panel and has a microSD card slot,. It has some writing on the bottom "www.mcufriend.com" and sometime only 2.4" TFT LCD.

This LCD can be used with Atemga328 UNO R3 and ATMEGA 2560 based Uno R3 Arduino Board .

 

WARNING:   The USB B-type port on the Arduino Uno R3 is taller then the headers on the board.  As a result, many shields, including this one can contact the metal shielding of the USB port, causing damage. The simplest way to avoid this is to place a piece of electrical tape, or Kapton tape, on top of the USB port to insulate it.‚Äč

 

 

 

 

 

 

 

 

 

 

 

 

DownLoad Library  for mcufriend (ili9341) from HERE

 

 

 

Type2: if it is marked on back side of tft as Kedei  so follow below:

Kedei does not work on Arduino Mega, it works only on Atemga328 UNO R3 and clones.

DownLoad Kedei Library from HERE

Important Note for Kedei:

Used only for Arduino Uno R3 ( ATMEGA 328)  based board does not work for another version Like mega, due etc..

Download library zip file(LCDTFT.zip) from above link , extract it(LCDTFT) and put in library folder

GO to Arduino IDE and use Exapmles from LCDTFT

 

Other Shield Information:

Arduino Pin Connections

Arduino Pin LCD Shield Pin Use
3.3V 3.3V Power
5V 5V Power
GND GND Power
A0 LCD_RD LCD Control
A1 LCD_WR   TOUCH_YP LCD Control / Touch Data
A2 LCD_RS     TOUCH_XM LCD Control / Touch Data
A3 LCD_CS LCD Control
A4 LCD_RST LCD Reset
D2 LCD_D2 LCD Data
D3 LCD_D3 LCD Data
D4 LCD_D4 LCD Data
D5 LCD_D5 LCD Data
D6 LCD_D6 / TOUCH XP LCD Data/ Touch Data
D7 LCD_D7 / TOUCH YM LCD Data / Touch Data
D8 LCD_D0 LCD Data
D9 LCD_D1 LCD Data
D10 SD_CS SD Select
D11 SD_DI SD Data
D12 SD_DO SD Data
D13 SD_SCK SD Clock

Specifications

  • Screen Size  :  2.4 inch
  • Resolution  :  240 x 320
  • LCD Color   :  65k
  • LCD Driver  : 
  • Interface      : 8080 8 data bit with 4 control bits
  • Touchscreen  : 4 Wire Resistive Touchscreen