help with arrays

have a look at digitalwrite documentation