set an output pin