Set GPIOs to output mode before setting their value