iterate over bits on one pin?

Your code works fine. It turns the LED on for 1 ms, off for 1 ms, etc.