modify limitSwitch&PWM frequency