So I don't see how I can do both.
You can't. As a PWM pin for the motor, it is an output pin. For the interrupt mechanism to work, it must be an input pin. A pin can not be both at once.
So I don't see how I can do both.
You can't. As a PWM pin for the motor, it is an output pin. For the interrupt mechanism to work, it must be an input pin. A pin can not be both at once.