Drive multiple LEDs ON together using PIC Microcontroller
It appears that you are creating something like an audio VU meter. The easiest way to do this would be to create a PWM signal, filter it and send it out to an LM3914 dot/bar display driver. These drive ten LEDs each and can be cascaded to driver as many as required.