According to my calc, to run LED's from 5V source you will need ~85 Ohm resisters in series for each led between the LED annode and the pic IO port to reduce the current down to 20mA each...
Thats assuming the LED's have a drive voltage of 3.3V
to work it out...
5 - 3.3 = 1.7V diference
now use V=IR re-aranged to R=V/I
Where,
V = voltage diference
I = Current in amps (mA is 1/1000A or 0.001A)
R = Resistance in ohms
Bookmarks