You have two pots so you have two analog inputs. Assuming they are connected to AN0 and AN1, you must set the corresponding bits in ANSEL to '1' , the corresponding TRIS bits also to '1' and as @AlbertHall said (while I was typing) select between your two analog channels i.e. select AN0, convert, save the result then select AN1, convert again, this time on channel 1 and save that result in a different variable. Then you take the two results, rate and brightness and do your delay flash and PWM processing from there. Channels are selected in ADCON0.
