Setup pins using list and loop