Add setting of PWM width and frequency.