added code to test setting output pins