pinMode(13, INPUT);digitalWrite(13, HIGH);
As dhenry is trying to explain, doing that turns on the internal pull-up, which effectively connects the on-board LED to 5V via about a 50K resistor.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16