Strange. I have used 4 of these ILI9341 displays and haven't had a problem. However, I used the following defines.
Code:
#define TFT_DC 9
#define TFT_CS 10
#define TFT_RST -1
#define TFT_SCK 13
#define TFT_MISO 12
#define TFT_MOSI 11
#define TOUCH_CS 8
I tied reset to +3.3V. The back light is tied to +5V through a 100 ohm resistor, per some recommendations I have read.
Constructors are:
Code:
XPT2046_Touchscreen ts(TOUCH_CS);
ILI9341_t3n tft = ILI9341_t3n(TFT_CS, TFT_DC, TFT_RST, TFT_MOSI, TFT_SCK, TFT_MISO);
I use the ILI9341_t3n library and haven't had any significant issues with it. I have built an Electronic Lead Screw for my lathe around this display. All my boards come right up and into the application. The display is powered by +5V since it has its own 3.3V regulator. Touch works great as well, although you do have to match the touch rotation to your screen rotation. That information is right on the sticker on the PJRC DISPLAY_ILI9341_TOUCH_32 that I use.