the clock speed for the pwm needs to be set - will need to add a param to control that