TFT color screen blocks of colour are striped - NOW SOLVED

Well I have a 3.5" TFT touch shield working with my uno which works really well its identifier is "ILI9488", so far having a ball playing with it, I can draw with it and place text and use the touch screen, its great fun.

I do have one issue though and that is solid colours the are all striped, and red is NOT red same for other colours. I can't find on the internet where anyone else has had this issue.

I have attached a pic, basically there are supposed to be 6 different colours across the top of the screen but I get these strippy blocks of not the right colour.

Interestingly if I use font the font colour is correct - so RED is red BLUE is blue etc but draw something and its like a zebra.

More investigating

my script uses two libraries Adafruit_GFX.h and MCUFRIEND_kbv.h , but I had another working example that uses UTFTGLUE.h instead of MCUFRIEND_kbv.h , both display the same behaviour with solid shapes ie fillRect looks like a zebra skin BUT in the example that uses the UTFTGLUE.h there are some random lines drawn and they are definitely RED lines even though in the same script the filled shapes are zebras.

So I added the UTFTGLUE.h to my script - surprisingly it compiled with both libraries

added code
#include <UTFTGLUE.h>
UTFTGLUE myGLCD(0x9488,A2,A1,A3,A4,A0);

// in setup
myGLCD.InitLCD();

//in loop
myGLCD.setColor (255,0,0);
for (int i=15; i<304; i+=5)
{
myGLCD.drawLine(1, i, (i*1.6)-10, 304);
}

and I got a whole stack of RED lines.

you can see in them in the attached

the filled rectangles are drawn with sample tft.fillRect(440, 280, 479, 319 ,RED);
the dotted lines are from sample tft.drawFastVLine(100,100, 100, RED); and tft.drawRect(200, 200, 100, 100, RED);
the lovely red lines are from the code snippet above

its all very curious some lines are RED most lines and fills are zebras

Most of the MCUFRIEND_kbv examples report the ID to the Serial Terminal.
The Library Manager tells you the library version.

Post a link to the actual screen that you have bought. Make sure that all photos on the link match the item on your desk. Or post a real photo of your real pcb.

Please let me know how you get on. So I can fix any problems for other owners.

David.

Thanks for your reply

UNO R3 Board 3.5 inch Plug and Play TFT LCD Display Arduino Touch Screen Module
http://www.ebay.com.au/itm/141656670946?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

back of the board has www.mcufriend.com printed on it

Your pcb has major components in the same place but the pcb traces are different to my ILI9488-555.

What ID is reported on the Serial Terminal?
Or if you run LCD_ID_readreg.ino sketch?

Which library version is reported by the Library Manager?

Seriously. It takes one minute to answer questions.
You would get a solution shortly afterwards.

David.

"Seriously. It takes one minute to answer questions.
You would get a solution shortly afterwards."

I apologise for being tardy

Just as well I had installed and played with putty last night

sorry about the tardiness again BUT

The message has the following error or errors that must be corrected before continuing:
You have exceeded the number of posts you can make in a 5 minutes period. Please try again later.

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 54 80 66 Manufacturer ID
reg(0x0009) 00 00 61 00 00 Status Register
reg(0x000A) 00 08 Get Powsr Mode
reg(0x000C) 00 06 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 93 30 93 30 RD_DDB SSD1963
reg(0x00B0) 00 00 RGB Interface Signal Control
reg(0x00B4) 00 02 Inversion Control
reg(0x00B6) 00 02 02 3B 3B Display Control
reg(0x00B7) 00 06 Entry Mode Set
reg(0x00BF) 00 00 00 00 00 00 ILI9481, HX8357-B
reg(0x00C0) 00 0E 0E 0E 0E 0E 0E 0E 0E Panel Control
reg(0x00C8) 00 B0 B0 B0 B0 B0 B0 B0 B0 B0 B0 B0 B0 GAMMA
reg(0x00CC) 00 03 Panel Control
reg(0x00D0) 00 00 00 Power Control
reg(0x00D2) 00 00 00 00 05 NVM Read
reg(0x00D3) 00 00 94 88 ILI9341, ILI9488
reg(0x00DA) 00 54 RDID1
reg(0x00DB) 00 80 RDID2
reg(0x00DC) 00 66 RDID3
reg(0x00E0) 00 00 07 0C 05 13 09 36 AA 46 09 10 0D 1A 1E 0F GAMMA-P
reg(0x00E1) 00 00 20 23 04 10 06 37 56 49 04 0C 0A 33 37 0F GAMMA-N
reg(0x00EF) 00 00 00 00 00 00 ILI9327
reg(0x00F2) 00 58 04 12 02 22 22 FF 0A 90 14 88 Adjust Control 2
reg(0x00F6) 00 00 00 00 Interface Control

You have a genuine ILI9488. I suspect it is a weird "9488-555" that has a hardware problem.

Library version v2.9.6 should produce a reasonable display but the colours are not perfect.
You must "enable" the support by editing MCUFRIEND_kbv.cpp:

#define SUPPORT_9488_555          //costs +230 bytes, 0.03s / 0.19s

David.

Downloaded 2.9.6
uncommented the #define line
recompiled and installed

I HAVE GOT SOLID COLOURS WOO HOO

Thank you so very much

There is something seriously wrong with the hardware in these 9488-555 displays.

Normally you have RGB in 5-6-5 format e.g. 6 bits of GREEN
The hardware has RGB in 5-5-6 format e.g. 6 bits of BLUE which has no explanation in the datasheet.

I adjust 565 colours to the effective 555 format. This loses one bit of GREEN. And the RED is not as intense as it should be.

You probably do not notice this in Graphics displays.
It looks horrible in photos.

You could ask Ebay for a replacement. Or just accept that it was cheap and only works 90%.
Personally, I was pleased to receive a display that did not have broken glass. I am keeping my display.

David.

I am quite happy with this, its going to be a clock so only has to show a few colours,

but

if my clock is successful who knows maybe I will build the next big thing.

thanks again

I guess that there is a batch of these surplus TFT modules on the Ebay market.

When the next batch of surplus TFTs arrive, we will get a new set of "features".

What really surprises me is that these modules were ever used in mobile phones. I found the module part number. Googling it does not produce any "phone complaints". Phones would need "good" colours.

David.

Working clock