// GPIO AS OUTPUT TEST
// S= I2C start command, P= I2C stop command
// D= Data
S 88 03 FF P // Set “IO DIRECTION” As Output direction
S 88 05 00 P // Set GPIO output register value
S 88 07 00 P // Disable output high impedance, output enable & set output as output register 05h value.
S 88 05 P S 89 D P // READ 05H TEST

//GPIO AS INPUT TEST
// S= I2C start command, P= I2C stop command
// D= Data
S 88 01 00 P // RELEASE INT RESET
S 88 03 00 P // SET IO DIRECTION AS INPUT
S 88 09 FF P // SET GPIO INPUT STATE AS HI
S 88 0B FF P // ENABLE INTERNAL RESISTOR
S 88 0D FF P // ENABLE INTERNAL PUR
S 88 0F P S 89 D P // READ GPIO STATUS
S 88 13 P S 89 D P // READ INT STATUS AND CLEAR INT STATUS