2 pins at the same time

Any function that takes an array or pointer as an argument should give you a clue.