This program cycles through each output pin on the mcp23017. Using this in conjunction with a i2c master device (Raspberry-PI, Beaglebone), you have the ability to fully communicate with this chip.