LED brightness between digital port and Analog port

Hi,

I just messing around with the LED today and notice that there is a major brightness difference between digitalWrite(Pin2, HIGH) and analogWrite(PIN A13, 255)

I am using it with the 3mm green LED and the problem is that with digitalWrite(PIN2, HIGH) the light is really dim but when I uses analogHigh(A13. 255) it becomes really bright.

Is there anyway that I can make Digital Port give out the same brightness as the Analog port? I already tried to put two Digital port on High (D2 and D3) but the result is the same

Thanks!

wow~ strange things!! :confused:

PIN A13? you use an Arduino mega ?