Accessing shield pins programmatically

Hi all,

I would like to access the shield pins programmatically.
Untitled-1
With the exception of P9, how do I access the rest on J9-J10 when I want them to act as basic digital IO? I don’t need the SPI or I2C functionality.

Thanks