Skip to content
Snippets Groups Projects
user avatar
Stefan Brüns authored
If dithering is enabled, the remainder of the soft_pwm_X duty value at
turnoff time is added to the next cycle. If e.g. the duty is set to 9 and
SCALE is set to 2, the PWM will be active for 8 counts for 3 cycles and
12 counts on each fourth cycle, i.e. the average is 9 cycles.

This compensates the resolution loss at higher scales and allows running
fans with SOFT_PWM with significantly reduced noise.

Signed-off-by: default avatarStefan Brüns <stefan.bruens@rwth-aachen.de>
35a55d57
History
Name Last commit Last update