You're right - I recently added pins 2 & 3 to what I was doing and that created a conflict, as things worked again when I removed them from the code!
For info, the IO Pi expander schematic is on this page - https://www.abelectronics.co.uk/p/54/io-pi-plus
Thanks.