You are saying that you use OnBoard LED ? But this LED is NOT on GPIO0, it is on TX line, therefore GPIO1 !
Try changing the pin number in your sketch ...
But beware that doing that, you won't be able to user Serial in the same sketch since you will switch GPIO1 function)
Or, simply add an external LED with resistor on another GPIO, like GPIO5.