Fast PWM for controller fan (#12485)
This commit is contained in:
parent
e98d195901
commit
8a0992d921
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue