
Originally Posted by
rfresh737
So my TFT touch pins must not be wired correctly.
If you have the PJRC style board - the SPI pins are shared - the only unique pin per device is the Chip Select. Not sure if this snippet from the code will help see the wiring if you have the PJRC XPY2046 controlled touch.
If you have the AdaFruit hardware with real Analog values from the touch - it isn't using the same touch controller - it would be like was used by another poster on this thread. In that case find his posts - it required directly reading and interpreting the analog values.
Code:
// The XPT2046 uses hardware SPI on the shield, and #8
#define CS_PIN 8
#define TIRQ_PIN 2
XPT2046_Touchscreen ts(CS_PIN);
// The display [MOSI=11, MISO=12, SCK=13] also uses hardware SPI, plus #9 & #10
#define TFT_CS 10
#define TFT_DC 9
ILI9341_t3 tft = ILI9341_t3(TFT_CS, TFT_DC);