I want to use an array to control output values. What can I do?

You're copying the same value eleven times each for loop, to the same pin.
Why?
The pin isn't going to forget.