Mega 2560 stuck pin

I got the mega 2560 and tried to run a stepper motor with it, could not get it to run, I switched over to my Uno and it ran fine with everything wired as it was on the mega with the same script.
After this I ran a led test on the pins, turns out the #3 pin is stuck on with a solid lit led while all the other pins flashed the led as the test script was supposed to do. Guess I got a bad one.

Was that the only pin that was available?

Nope, just was hoping someone else may have an issue like this, maybe it’s a software problem or something idk. Also while I’m holding it on the edges lightly the yellow led on the board dims out like something is shorting, forgot to mention that. Idk if that is normal with these or not. I’m pretty new to Arduino, mostly played around with raspberry pi before this, not trying to sound like I’m complaining or anything.

First thing I would check is whether there's continuity between 5v and the pin; it's possible, just barely, that the pin is shorted to 5V by excess solder on a pin, poor board fab, or what have you.

When you say the LED fades out, is it like it's being shorted when the pin output goes low? I wouldn't expect the pin to survive sinking the regulator output for long, but... You can test this by loading a sketch that does not set that pin to output, but is otherwise identical. The LED shouldn't fade out then.

I was talking about the factory led, the one on the board, it fades when I hold the board.
I’ll check the 5v to the pin, I would have returned it but after I got it I ordered the uno that came opened with no cord so I kept them both because I need the cord, Amazon​:unamused_face: pretty sure I have an old 20 year old printer cord but not sure if that would be okay.

Well, if it's the power LED on the board, you've more wrong than you know. Draw a schematic of your power arrangement. Either your USB power is failing (overloaded???), or, if you're using external power, that supply is being overloaded, so something's seriously wrong.

Schematic, definitely, before any further diagnosis.

It does it with only the arduino brand usb plugged in to the PC nothing else, no wires in any pins anywhere.

Even when I just plug it in with no sketch uploaded or running.

Try another board with the same cable and let us know what is happening. You may have damaged your USB port.

Not surprising, if the problem is hardware related. Schematic, please.