arduino pin 13

My arduino digital pin 13 when programmed to be high does not receive power, and so the led doesnt glow, however, when i program 12 to be high and take a wire from pin 12 to 13, the onboard led glows.
I am now sure that my led is not dead, but i was wondering why is it not getting power from pin 13 when it is programmed to be high.

Any help would be appreciated.

Using what code?

I am now sure that my led is not dead, but i was wondering why is it not getting power from pin 13 when it is programmed to be high.

That would depend upon what abuse I/O pin 13 was subjected to in the past.

Don

and take a wire from pin 12 to 13, the onboard led glows.

I don't know what the problem is, but you should NEVER short two outputs together!!! If one output is high and the other is low, the outputs will "fight" each other and excessive current will flow... Bad things can happen and you might even fry the chip.

It's possible that you've blown the pin-13 output, but at this point I'm not sure and there may be a different problem.

If the "Blink LED" example doesn't work on pin-13, but it does work with a (different) LED (and resistor) connected to pin-12, and with the sketch modified to blink pin 12, then I'm pretty sure your Arduino is damaged or defective.

Has it EVER worked? It could be a faulty solder joint.