2 pins at the same time

Have you looked at the blink without delay example?