http://mbed.org/users/romilly/code/MCP23S17/#068b1e8909bb