Fast PWM for controller fan (#12485)

This commit is contained in:
Sinisa Culic 2018-11-23 23:03:39 +01:00 committed by Scott Lahteine
parent e98d195901
commit 8a0992d921

View File

@ -1171,6 +1171,13 @@ void Temperature::init() {
#endif
#endif
#if ENABLED(USE_CONTROLLER_FAN)
SET_OUTPUT(CONTROLLER_FAN_PIN);
#if ENABLED(FAST_PWM_FAN)
setPwmFrequency(CONTROLLER_FAN_PIN, 1); // No prescaling. Pwm frequency = F_CPU/256/8
#endif
#endif
#if ENABLED(HEATER_0_USES_MAX6675)
OUT_WRITE(SCK_PIN, LOW);