variable pwm frequency and duty cycle using push buttons