Life is so much simpler when you copy-paste text from the Serial terminal.
Yes, your Mega2560 is working just fine. You simply have to move the wires from the Mega to the Due.
- I installed Adafruit_HX8357 via Library Manager.
- I selected Mega2560 as board
- I built "graphicstest" from the Examples.
Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino-1.8.1\hardware\arduino\avr\libraries\SPI
Using library Adafruit_GFX_Library at version 1.2.3 in folder: C:\Users\David Prentice\Documents\Arduino\libraries\Adafruit_GFX_Library
Using library Adafruit_HX8357_Library at version 1.0.1 in folder: C:\Users\David Prentice\Documents\Arduino\libraries\Adafruit_HX8357_Library
Sketch uses 17884 bytes (7%) of program storage space. Maximum is 253952 bytes.
Global variables use 580 bytes (7%) of dynamic memory, leaving 7612 bytes for local variables. Maximum is 8192 bytes.
- I selected Due Programming Port as board.
- I built "graphicstest" from the Examples
Using library SPI at version 1.0 in folder: C:\Users\David Prentice\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\SPI
Using library Adafruit_GFX_Library at version 1.2.3 in folder: C:\Users\David Prentice\Documents\Arduino\libraries\Adafruit_GFX_Library
Using library Adafruit_HX8357_Library at version 1.0.1 in folder: C:\Users\David Prentice\Documents\Arduino\libraries\Adafruit_HX8357_Library
Sketch uses 38916 bytes (7%) of program storage space. Maximum is 524288 bytes.
I don't have your hardware. I could modify the library for an SPI ILI9341. The only 320x480 SPI controllers that I have are ILI9481 and ILI9488. Both write pixels as 24-bit. So require extensive modification.
Quite honestly.
Your Mega connects GND, SCK, MOSI, MISO from the 3x2 ICSP header. CS, DC, RST on 10, 9, 8
Your Due connects GND, SCK, MOSI, MISO from the 3x2 ICSP header. CS, DC, RST on 10, 9, 8
The Serial display should report the same values for Power Mode. MADCTL, PIXFMT, ...
It will have "shorter" times for the Adafruit Tests.
Please copy-paste the Serial Terminal to your message in a CODE window.
If your build libraries are different from mine, copy-paste your build libraries result.
(select compile=verbose in File->Preferences)
David.