attempt to fix pwm switch putput pins

added max_pwm config setting for the output pin
Turning pin on without an S parameter sets it to full on (max_pwm) rather than last setting, same as Marlin