Go Down

Topic: 2.4" mcufriend display mirored (Read 2644 times) previous topic - next topic

david_prentice

You have a SPFD5408 controller.   ID = 0x5408.
As far as I know all the colours and directions should be correct in v2.9.8

Yes,  you have pasted ok.   If you select a Code Window with the <> icon at the top left of the screen,  it displays code nicely.

Please let me know if your screen has bad direction or mirrored.

David.


aruffato

#16
Aug 25, 2019, 04:31 pm Last Edit: Aug 25, 2019, 04:36 pm by aruffato
David, good morning
Sorry for my awfull English, but I'll try to write as well as possible

As I have wrote in my first post, I have bougth TWO TFT LCD 2.4" touch screen in Banggood.  The problem with the first one with the "FLIP IMAGE" was fixed and it is working fine.

But the second TFT have a WHITE SCREEN.
I'll tried to modify the sentence tft.begin(0xD3D3), with a lot of identifiers, but it doesn't work

//   code copy **************************
  uint16_t ID = tft.readID();
  Serial.print("ID = 0x");
  Serial.println(ID, HEX);
//    tft.begin(ID);
//    tft.begin(0x9341);
//    tft.begin(0x9488);    
//    tft.begin(0xD3D3);    
  tft.begin(0x5408);  
// ***********************************

I have attached the register for this TFT LCD, and paste below ->
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) C0 C0 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) C4 C4 C4 C4 Manufacturer ID
reg(0x0009) C9 C9 C9 C9 C9 Status Register
reg(0x000A) CA CA Get Power Mode
reg(0x000C) CC CC Get Pixel Format
reg(0x0061) E1 E1 RDID1 HX8347-G
reg(0x0062) E2 E2 RDID2 HX8347-G
reg(0x0063) E3 E3 RDID3 HX8347-G
reg(0x0064) E4 E4 RDID1 HX8347-A
reg(0x0065) E5 E5 RDID2 HX8347-A
reg(0x0066) E6 E6 RDID3 HX8347-A
reg(0x0067) E7 E7 RDID Himax HX8347-A
reg(0x0070) F0 F0 Panel Himax HX8347-A
reg(0x00A1) E1 E1 E1 E1 E1 RD_DDB SSD1963
reg(0x00B0) F0 F0 RGB Interface Signal Control
reg(0x00B4) F4 F4 Inversion Control
reg(0x00B6) F6 F6 F6 F6 F6 Display Control
reg(0x00B7) F7 F7 Entry Mode Set
reg(0x00BF) FF FF FF FF FF FF ILI9481, HX8357-B
reg(0x00C0) C0 C0 C0 C0 C0 C0 C0 C0 C0 Panel Control
reg(0x00C8) C8 C8 C8 C8 C8 C8 C8 C8 C8 C8 C8 C8 C8 GAMMA
reg(0x00CC) CC CC Panel Control
reg(0x00D0) D0 D0 D0 Power Control
reg(0x00D2) D2 D2 D2 D2 D2 NVM Read
reg(0x00D3) D3 D3 D3 D3 ILI9341, ILI9488
reg(0x00D4) D4 D4 D4 D4 Novatek ID
reg(0x00DA) DA DA RDID1
reg(0x00DB) DB DB RDID2
reg(0x00DC) DC DC RDID3
reg(0x00E0) E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 GAMMA-P
reg(0x00E1) E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 GAMMA-N
reg(0x00EF) EF EF EF EF EF EF ILI9327
reg(0x00F2) F2 F2 F2 F2 F2 F2 F2 F2 F2 F2 F2 F2 Adjust Control 2
reg(0x00F6) F6 F6 F6 F6 Interface Control

Why I couldn't see anything ?
If you compare the two LCD in one of the photos, you will see ONE of them with the sketch ->
TouchScreen_Calibr_native.ino

And the other one, with the screen WHITE. By the way the Library installed is the 2.9.9 ->

#ifndef MCUFRIEND_KBV_H_
#define MCUFRIEND_KBV_H_   299

Could you please HELP ME ???
Thank you very much, best regards

Adrian RUFFATO

david_prentice

Please post a link to the actual display that you have bought  e.g. the Ebay sale.
Or post a photo of the pcb.   So that I can read all the printed labels.

Your LCD_ID_readID report is returning rubbish.
Do you have an "Open-Smart" display ?

David.

david_prentice

Posting a photo of a White display is useless.
I need to see a photo of the pins side of the shield.

aruffato

David, thanks for your quickly answer.
If I understand, I'll attach a photo for the pcb ARDUINO UNO(I have at least four or five generic), and the back of the TFT LCD with the pins labeled.

I have attach a report of the sketch diagnose_TFT_support.ino

Best regards

Adrian

aruffato

David, sorry me
I do not have an Open-Smart display, I believe you should call it a SHIELD TFT Display that I could mount over the ARDUINO UNO v R3.

Adrian

david_prentice

You have a current Mcufriend shield (with crap pcb)

The readreg report shows bit6 and bit7 "stuck" high e.g. reg(0x04) shows 0xC4

Uno  clones are normally well made.
Do you get the same readreg report with both Unos ?

Have you plugged the shield into the Uno properly?

It is always safer to use the v2.9.8 Release i.e. from the IDE Library Manager

0nly use the v2.9.9-Beta if you have been specifically advised (or if you have forked from GitHub)

If your shield does not work, tell Banggood.   They will refund your money.

David.

aruffato

#22
Aug 27, 2019, 01:20 am Last Edit: Aug 27, 2019, 01:30 am by aruffato
David, good nigth.
Thank you so much for your preciate time, and patient, it's a pity for the broken TFT, I was lost because if you probe this TFT with a SD-CARD, you'll read the card, and because I saw the blank screen I thought I have a problem wit some kind of software in the Library, as same as the first one.

In response at your questions, I'll answer one by one:

a) Do you get the same readreg report with both Unos ?
   Yes, in THREE diferents ARDUINOS, I have attached the reports.

b) Have you plugged the shield into the Uno properly?
   Yes, some sketches that use the Monitor Serie, works without problem. And I probe the other TFT LCD ID 0x5408, with every ARDUINO, and works OK.

c) It is always safer to use the v2.9.8 Release i.e. from the IDE Library Manager
   OK, I'll try to download the version 2.9.8 and uploads the sketches to view a diference, between versions.

d) If your shield does not work, tell Banggood.
   OK, I'll do

DAVID, thank you very much,  :) best regards

Adrian
Spanish, Argentina Sud America

Go Up