Adding the pwm code to the project