Diagonal lines and wrong colours from fillRect

Hi,

I have an ILI9488 3.5in TFT LCD from eBay. I found the code to get it working, sorted out the touchscreen coordinates and other stuff. Now I’m trying to figure out why it fills rectangles weird. They have diagonal miscoloured lines smeared across them? But I can draw text absolutely perfect, so I doubt the LCD is defective. Are some pins mismatched or something? Can anyone point me in the right direction?

Cheers,

You have an ILI9488_555 display.

Install MCUFRIEND_kbv library from the Library Manager.
enable SUPPORT_9488_555 in MCUFRIEND_kbv.cpp (edit the two slashes in front of the #define)

David.

Haha! Thank you. You instantly solved it. :slight_smile: