Need pin connection help for 240x320 2.8" ILI9341

Does unplugging the power source from the UNO (usb cable) constitute a hard reset?

If so, once I load the adafruit demo it always runs, even if I unplug the USB and then plug it back in, it just runs again. The same is not true for the due demo. If it's running and I unplug the USB, then plug it back in, the screen stays white. If I try uploading the code again, it still stays white. It's only after I upload the adafruit code that I can once again upload the due code and have it work.

However my hardware is set up, it seems like a software issue to me based on that. The adafruit library is somehow resetting the screen properly and the ILI9341_due is not. The simple code demos I posted are identical except for the libraries they are using, so it's got to be something in the ILI9341_due library itself that isn't working for me.

A soft Reset command is only writeCommand(0x01).

You don't even need parameters.
By the sound of it, you have no intention of correcting your hardware.

You may have different library versions to me. I just looked in my copies.

I suppose that I could deliberately omit the hardware Reset on my displays. I know from experience that this is unwise for the older controllers. However the ILI9341 does possess a software command.

David.

Alright, I did the hardware reset and connected it to pin 8, and restored the commented out reset info in the code, and now everything works. I still don't understand why it worked via software for the adafruit library before and not the ILI9341_due, but it works for both when "#define TFT_RST 8" is added along with the following depending on the library:

Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
OR
ILI9341_due tft = ILI9341_due(TFT_CS, TFT_DC, TFT_RST);

I still don't feel very comfortable on the hardware side of doing things, but thanks for knocking it into my head David :grinning: