Blinking light

My light on my arduino nano atmega 328 has this issue where when i connect it to a 9V battery with a switch in between the light on pin 13 starts blinking and none of the code I have on there is supposed to do that. Is this some sort of warning?

Is there any serial communication in your code? Perhaps you should post it.

Well it turns out it was simply a wiring mistake. It's a miracle that my arduino isn't fried. :stuck_out_tongue: