Because the display is a shield, there is no "wiring diagram” and I’m not sure how my code would help. The library that uses the pins directly is <DIYables_TFT_Touch_Shield.h> and is on GitHub. I am not experienced enough, nor clever enough, to plough through the library source code to work out which pins are not used.
I received a a very helpful reply from DIYables. I thought I would share it for the benefit of others:
"Regarding your question, the shield uses the following pins: D2, D3, D4, D5, D6, D7, D8, D9, A0, A1, A2, A3, A4
It means that you can freely use the following pins for other purposes: DO, D1, D10, D11, D12, D13, A5.
However:
if you use the SDcard, you cannot use D10, D11, D12, and D13.
if you use Serial, you cannot use D0 and D1.
Please note that pin A5 can be used as digital or analog.”
Actually, since you're using an Uno R4, you can use Serial and D0 and D1 are still available, as they're (optionally) used for Serial1, not Serial as in the R3.
Thank you, van_der_decken, that is a very good point! Those two pins are particularly useful as they are not covered by the headers on the display shield and so are more accessible.