Arduino Mega and breadboard communication


I've recently got a Mega and a breadboard and i'm trying to make an LED matrix, initially 5x5. I've managed to get all the initial configuration right. I've got an LED on the breadboard lighting up. It's hooked up to the 5v power on the Mega with a 1/4w resistor.

I've played with the initial sketch where you connect an LED directly into the Mega itself and control from there, which is easy enough. I'm now trying to control the LED on the breadboard and i'm lost as to how to reference it.

Can anyone help me out or point me in the right direction? I just want to understand how you go about referencing LEDs on the breadboard and i'll figure out the manipulation from there.

Any and all help is greatly appreciated!

You use the LED on the breadboard exactly like it was plugged directly in. You need to run a wire from the Mega output pin to the row that the LED’s + leg is connected to, and another from the Mega ground to the row that the other end of the resistor is connected to (the one that is not connected to the LED’s - leg).

That's perfect! Thanks PaulS!!