LCD Touch screen not updating

There is some confusion over which screen you have.

I suspect it is a Mcufriend-style Shield. The Touch pins are shared with the TFT. So you must always restore the Analog pins after any call to the Touch e.g.

    TSPoint p = ts.getPoint();  //Get touch point
    pinMode(YP, OUTPUT);
    pinMode(XM, OUTPUT);

It is possible that YM, XP are on 8, 9. It is more common to be on 6, 7.

You do not need the Adafruit_SPITFT headers. You have a regular parallel Mcufriend shield. Use a genuine Adafruit_TFTLCD library from Adafruit (or MCUFRIEND_kbv)

David.

1 Like