set up gpio for output