Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
It depends on what you want to do with those LEDs. If you want to blink them simultaneously, send 1s to the connected pins, have some delay, send 0s, some more delay and start over.
If you want to turn them on one after the other, you can individually send 1s and 0s, or you could start from 1 pin and shift it continuously. When you reach the end of a port, use a conditional statement to shift it onto the next port.
You should mention what exactly you want to do and also, how many LEDs you have and what you intend to do with those LEDs.