input and output pins, write high to output always in callback