Fast PWM for controller fan (#12485)

2.0.x
Sinisa Culic 6 years ago committed by Scott Lahteine
parent e98d195901
commit 8a0992d921

@ -1171,6 +1171,13 @@ void Temperature::init() {
#endif #endif
#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) #if ENABLED(HEATER_0_USES_MAX6675)
OUT_WRITE(SCK_PIN, LOW); OUT_WRITE(SCK_PIN, LOW);

Loading…
Cancel
Save