MCP23S17 port expander register settings

Below are the register setting used for the Teensy 3.5. This is using the GPIO port Expander library written by Sumotoy.

The register setting for using two ports for input and output. Using Sumotoy library for Teensy
The register setting for using two ports for input and output. Using Sumotoy library for Teensy