Difference between revisions of "Rockpi4/hardware/fan"
(Created page with "{{rockpi4_header}} {{Languages|rockpi4/hardware/fan}} ROCK Pi 4 > Hardware > Fan == Introduction ==") |
|||
Line 5: | Line 5: | ||
== Introduction == | == Introduction == | ||
+ | |||
+ | == Control fan example == | ||
+ | |||
+ | <pre> | ||
+ | echo 0 > /sys/class/pwm/pwmchip0/export | ||
+ | sleep 0.2 | ||
+ | echo 40000 > /sys/class/pwm/pwmchip0/pwm0/period | ||
+ | sleep 0.2 | ||
+ | echo 10000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle | ||
+ | sleep 0.2 | ||
+ | echo normal > /sys/class/pwm/pwmchip0/pwm0/polarity | ||
+ | sleep 0.2 | ||
+ | echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable | ||
+ | </pre> |
Revision as of 07:14, 17 June 2022
ROCK Pi 4 > Hardware > Fan
Introduction
Control fan example
echo 0 > /sys/class/pwm/pwmchip0/export sleep 0.2 echo 40000 > /sys/class/pwm/pwmchip0/pwm0/period sleep 0.2 echo 10000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle sleep 0.2 echo normal > /sys/class/pwm/pwmchip0/pwm0/polarity sleep 0.2 echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable