working software PWM and button interrupt