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

Can you post again, using the shift key and some punctuation, please?