Waiting on a Switch to Stop Moving

wildbill:
Intermittent sounds like a floating input and sure enough, we have this:

        digitalWrite(pinList, HIGH);

Which however, doesn't compile in 1.0 and John has correct in his post above. Can you clarify what the latest code is?

That's an artifact of the posting. Since it was posted as a 'quote' and not 'code' the square brackets and 'i' in the original don't display. The code actually does say:

        digitalWrite(pinList[i], HIGH);