Array

Set the values of all pins using an array and set pin mode using a for
loop to improve efficiency of code