Go Down

Topic: Mcufriend tft 2.4 (Read 109 times) previous topic - next topic

Antonp

Jan 12, 2018, 07:16 pm Last Edit: Jan 12, 2018, 07:23 pm by Antonp
Hello friends i order two 2.4 tft shields  from AliExpress and a i have some problem.  I figure out that 8347 driver is used in them. When i run test examples the screen shows some distorted images

david_prentice

How do you "figure out" anything?

What does tft.readID() say?

What does LCD_ID_readreg.ino sketch say?

What library are you using?
What sketch are you running?
A photo of the pcb is always useful.   It often has a paper label,  rubber stamp,  printed legend, ...

David.

Antonp

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) 47 47   ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 00 00 00 00   Manufacturer ID
reg(0x0009) 3F 3F 3F 3F 3F   Status Register
reg(0x000A) 00 00   Get Power Mode
reg(0x000C) 01 01   Get Pixel Format
reg(0x0061) 00 00   RDID1 HX8347-G
reg(0x0062) 80 80   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) 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03   GAMMA-P
reg(0x00E1) 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49   GAMMA-N
reg(0x00EF) 49 49 49 49 49 49   ILI9327
reg(0x00F2) 10 10 10 10 10 10 10 10 10 10 10 10   Adjust Control 2
reg(0x00F6) 00 00 00 00   Interface Control

david_prentice

Install the MCUFRIEND_kbv library from Sketch ->  Include Library -> Manage Libraries

Edit MCUFRIEND_kbv.cpp from
Code: [Select]

//#define SUPPORT_8347D             //HX8347-D, HX8347-G, HX8347-I +520 bytes, 0.27s

to:
Code: [Select]

#define SUPPORT_8347D             //HX8347-D, HX8347-G, HX8347-I +520 bytes, 0.27s


David.

Antonp

Done before. The result distorted image.

david_prentice

I am happy to resolve any problems.

But you must make an effort to supply adequate information so that I can reply.

e.g.   make notes of each step you have made.
e.g.   number each step.
e.g.   type this information into your message.   together with the result.

David.

Go Up