3.95 inch LCD touch screen ili9488

david_prentice:
Your photo shows a write-only mega2560 Shield with an 8-bit interface. (4 resistor packs RP1-RP4)
It is the wrong shape for 400x320. It is probably 480x320.

As far as I know, the only library that will work is MCUFRIEND_kbv that you can install from Library Manager.
However, it is rather complex to configure it to work with your SPECIAL board.

Edit utility/mcufriend_shield.h to define USE_SPECIAL
Edit utility/mcufriend_special.h to define USE_MEGA_8BIT_SHIELD
Edit every sketch to force tft.begin(0x9488)

Plug the shield into the Mega making sure that all the male pins mate with female sockets.

It is possible that your Shield has a different controller. If 0x9488 is not 100% perfect, try 0x9481, 0x9486, 0x1581, ...

Please let me know how you get on. The library is intended for Uno Shields. It is fiddly to enable SPECIALs for unusual hardware.

David.

David, I tried your solution using same mega2560 Shield on a Due. When i run graphicstest it works ok for a bit then it gets distorted {lines wrong color, black pixels, etc.). Checked that shield was securely plugged in the due. Just thought I'd give you some feedback and thanks for your great library!