Using LCD Touch screen TP28017 with additional I/O

I'm building a learning TV remote control using a Uno and the LCD touch screen TP28017. I also need to have an IR receiver and IR photo-diode hooked up. The LCD display seems to use all the I/O pins except D0/D1 (which are used for uploading etc) and A5. I'm trying to use A5 with the adafruit rawRecv.ino Example sketch for IRLib2, setting

IRrecvPCI myReceiver(18);//pin number for the receiver

This doesn't seem to work. In any case, could I use A5 to drive the IR photo-diode?

Thanks

You could try:

IRrecvPCI myReceiver(A5);//pin number for the receiver
// or
IRrecvPCI myReceiver(19);//pin number for the receiver (if my counting is correct for A5 !)

You can also use the RX pin you don't use Serial read (etc.) but it's best not to use the TX pin so you can still write debug output. You could use a jumper to the pin so be sure that your attached circuit does not interfere with sketch uploads.

Incidentally, are you using a simple photodiode or are you using an infrared receiver (eg TSOP4838 etc.) ?