Changing Digital I/O settings on Sidecar

I have a question about using ports 9-14 of the Digital I/O ports on the Sidecar.

Is there a way to change their settings from output to input using Java?
Ports 1-8 seem to work properly, but we are unable to read ports 9-14 correctly.