TFT LCD shield divided Screen


i am trying to work with a 2.4 TFT shield from, i don't buy in aliexpress, a friend give it to me and he bought to a local distributor, i have some trouble:

  1. I try to work with Mcufriend_kbv library but it gives me: text mirrored, inverted colours and split screen
  2. theres another library called SPFD5408: it gives me inverted colours and split screen.

You can see the display and the result in the pics.

Example: Front: Back:

Anyone had the same problem?


Your display has been sent through the wars !

As always. Run the LCD_ID_readreg.ino sketch. Copy-paste the output from the Serial Terminal. Either it is an "unknown" controller or your friend has damaged it.

I support about 25 different controllers. If I know your controller ID, I can add support. I have only "failed" on HX8347-A but if I had one on my desk, I bet that I could get that going inside 20 minutes.


I'm getting the same thing... when I run JoaoLopesF code from Hackaday, I'm getting a split screen. so what ever you are displaying is split and is displayed in 1/2 the screen, and then displayed again in the other 1/2... so I see your text "Groop I Implore you... " displayed twice in 1/2 the screen as it rotates through printing in landscape and portrait... thoughts? I bought this TFT

When I run theSPFD5408 Graphicstest with Adafrut unit16_t identifier code uncommented, I get

TFT LCD test Using Adafruit 2.8" TFT Breakout Board Pinout Found ILI9341 LCD driver Benchmark Time (microseconds) Screen fill 1322516 Text 421928 Lines 4214832 Horiz/Vert Lines 140444 Rectangles (outline) 104472 Rectangles (filled) 3069832 Circles (filled) 1365436 Circles (outline) 1841148 Triangles (outline) 1336944 Triangles (filled) 1749568 Rounded rects (outline) 613452 Rounded rects (filled) 3636560 Done!

any Ideas?

It looks as if you have a Red 2.4" mcufriend display. (It looks like a "Green Dog" display i.e. it works but the colours are bad)

Run the LCD_ID_readreg.ino sketch on a Uno. This will identify which controller you have.

MCUFRIEND_kbv library supports many controllers but there are many other llibraries that work with particular common controllers.


Edit. Visited your link. Added my link.


I just runned the example and my result is this:

Read Registers on MCUFRIEND UNO 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) 00 00   ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 00 00 00 00 Manufacturer ID
reg(0x0009) 00 00 00 00 00  Status Register
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 FF FF 00 00  RD_DDB SSD1963
reg(0x00B0) 00 03   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   Panel Control
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(0x00DA) 00 00   RDID1
reg(0x00DB) 00 00   RDID2
reg(0x00DC) 00 00   RDID3
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

It looks like the same one as others have bought. A fellow member has mailed one to me. I hope to receive it shortly.

Thankyou for the readreg report.

If I can get it working, I will release a new library version.


David, when I was messing with my display I have that has this issue I ran into a code (not library) that someone had posted on here that actually drew out individual lines on through out the whole display meaning that it is possible to fix the mirroring issue. I just can't seem to find the code for the life of me now and I tried so many other things since then. That seemed to be the only problem that hasnt been solved. Touch works, Card works, colors and orientation works fine also with multiple libraries.


Did you have any advance with this @Tahp @david_prentice?

I sent an email to the vendor, obviously i got not answer

Best regards

No, I still have not received the Shield from California.

It seems that the USPS is no more reliable than China Post. I suppose that we are spoiled in Europe. There is an excellent postal service.

If you do get a reply from the Vendor, please let me know which make of controller is used.


Ok, i wll.

I also hear that there's a bad lot from that vendor, have you heard some like this?


I received the packet from ylph this afternoon. 17 days from California to the UK !! Thankyou very much for sending the shield. Everyone benefits from your mailing.

The controller is a Renesas R61520. It can do everything except for Vertical Scroll. I have found a datasheet for an R61526. Can anyone find a datasheet for the R61520?

I will probably post a new library version 2.9 this evening.


Hi David.

I was looking for that datasheet yesterday i didn't get it yet, i will keep looking.

In metya Problem like vas.Budu very grateful if you solve the problem .

It seems a bad lot, our local distributor had the same problem with other LCD Shield

Go on. I specifically go to the effort of adding support for this controller.

Have you actually tried v2.90 ? It seems to work for everyone else.

If you have a problem, please eexplain exactly what it is. For example, what ID is returned? What does the new LCD_ID_readreg sketch say?


Hi David.

I returned the Displays to the local distributor, so i cannot test with that, so i am using you new version and works fine with the good LCD.


Please explain.

How many displays did you have? Where from? What were the problems? And with how many?

Ebay items are so cheap. It surprises me that most of them work fine.


I hava same problem, SPFD5408 shows something on screen but two splitted screen.

Have you tried my MCUFRIEND_kbv library v2.9 ?

Run the LCD_ID_readreg sketch. Paste the report directly from your Serial Terminal.

I was amazed to find that someone actually has a SPFD5408 controller. Most references to SPFD5408 seem to be invented by mendacious Ebay vendors.

Please let me know how you get on.


Hi David.

We had problems with divided Screen in some Displays, so we returned it as warranty, so, i cannot test the new version of the library with that LCD

Now, i am working with other displays that works fine with the new version of the library