void WriteReg_MCP23S17(unsigned char HardwareAddr, unsigned char RegAddr, unsigned char RegValue);
// Writes IOCON register configuration :
// BANK=0 : IOCON addresses are page 11
// MIRROR=1 : Int pins internally coonected, SEQOP=1 : Sequential operation disabled
// HAEN = 1 : Hardware address DISABLED, INTPOL = 1 : Int ouptput pin is active high
// Configuration for the chip Hardware addressed : 000
WriteReg_MCP23S17(0,0x0B,0b01101010);
// Configuration for the chip Hardware addressed : 001
WriteReg_MCP23S17(1,0x0B,0b01101010);
// Configuration for the chip Hardware addressed : 111
WriteReg_MCP23S17(7,0x0B,0b01101010);