using either a rotory encoder or button press count to change pwm mode

hang on it says (int a=0;a<7:a++) is this trying to use the annologue pins i would like to use the digital inputs