MCUFriend 2.8" tft shield for arduino

Hello,

I've purchased a display labeled 2.8-inch tftlcd for arduino (ft1509), www.mcufriend.com. I couldn't get it worked. I've tried the following library from Github and loaded different examples. Did I miss anything, is it the best library for the module I've bought?

Library : GitHub - prenticedavid/MCUFRIEND_kbv: MCUFRIEND_kbv Library for Uno 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend Shields

I have attached the photo of the display.

Seriously. Look at your two JPEG photos.

The front view is at an angle. So it is difficult to judge whether your screen is 240x400 or 240x320. i.e. the shape.
The pcb view is not from real life at all. Even a 240x400 would not look as narrow as that. And it clearly would be too narrow to mate with the Arduino Uno header sockets.

Read the how_to file from the library installation.
Run the LCD_ID_readreg.ino sketch. Copy-Paste from the Serial Terminal to your message. (in a CODE window)

David.

Thank you for your reply. Here is the terminal output.

Read Registers on MCUFRIEND UNO shield
controllers either read as single 16-bit
e.g. the ID is at readReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)

reg(0x0000) 93 26	ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 00 00 00 00	Manufacturer ID
reg(0x0009) 00 00 00 00 00	Status Register
reg(0x000A) 00 00	Get Power Mode
reg(0x000C) 00 00	Get Pixel Format
reg(0x0061) 00 00	RDID1 HX8347-G
reg(0x0062) 00 00	RDID2 HX8347-G
reg(0x0063) 00 00	RDID3 HX8347-G
reg(0x0064) 00 00	RDID1 HX8347-A
reg(0x0065) 00 00	RDID2 HX8347-A
reg(0x0066) 00 00	RDID3 HX8347-A
reg(0x0067) 00 00	RDID Himax HX8347-A
reg(0x0070) 00 00	Panel Himax HX8347-A
reg(0x00A1) 00 00 00 00 00	RD_DDB SSD1963
reg(0x00B0) 00 00	RGB Interface Signal Control
reg(0x00B4) 00 00	Inversion Control
reg(0x00B6) 00 00 00 00 00	Display Control
reg(0x00B7) 00 00	Entry Mode Set
reg(0x00BF) 00 00 00 00 00 00	ILI9481, HX8357-B
reg(0x00C0) 00 00 00 00 00 00 00 00 00	Panel Control
reg(0x00C8) 00 00 00 00 00 00 00 00 00 00 00 00 00	GAMMA
reg(0x00CC) 00 00	Panel Control
reg(0x00D0) 00 00 00	Power Control
reg(0x00D2) 00 00 00 00 00	NVM Read
reg(0x00D3) 00 00 00 00	ILI9341, ILI9488
reg(0x00D4) 00 00 00 00	Novatek ID
reg(0x00DA) 00 00	RDID1
reg(0x00DB) 00 00	RDID2
reg(0x00DC) 00 00	RDID3
reg(0x00E0) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00	GAMMA-P
reg(0x00E1) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00	GAMMA-N
reg(0x00EF) 00 00 00 00 00 00	ILI9327
reg(0x00F2) 00 00 00 00 00 00 00 00 00 00 00 00	Adjust Control 2
reg(0x00F6) 00 00 00 00	Interface Control

You have an ILI9326 controller with a 240x400 display.
It is not a very common controller. It is not enabled by default.

From the mcufriend_how_to.txt:

ILI9326  240x400  ID=0x9326 #define SUPPORT_9326_5420

Edit the MCUFRIEND_kbv.cpp file e.g. remove the two slashes on the #define SUPPORT_9326_5420 line

Why was your pcb photo such a strange shape?

David.

Thank you very much, the display is working perfectly. I want to plot a simple graph in this display. Could you please give me some suggestions to plot a graph in the display. (Basically, it will be having a set of values for X-axis and another set of values for Y-axis) This is for an embedded system and we have to plot a graph which is updated frequently.

Photo problem: My photo was more than 1 MB. So I have edited that in MS Paint without keeping aspect ratio, sorry for that confusion.