Every iteration of your loop turns the led off right after start. There's you problem.