arduino mega got 12v in 5v output pin

board still works and runs my program,

So by some miracle you possibly haven't blown up the CPU, but maybe the USB CPU has gone poof?

If that's the case you may still be able to program the board using ISP.

If you're really lucky maybe you just blew up a regulator. Have you tried powering from the USB and also the VIN plug?


Rob