Turn on HDD fan in the enclosure

This commit is contained in:
coolneng 2023-12-12 14:58:06 +01:00
parent 1723a4a872
commit f1c6450ec4
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ PWM_PATH="$BASE_PATH"/pwm/pwmchip0
# GPIO pins # GPIO pins
CPU_FAN=12 CPU_FAN=12
HDD_FAN=13
# Values # Values
LOW=0 LOW=0
@ -49,11 +50,13 @@ set_pwm() {
turn_on() { turn_on() {
set_gpio $CPU_FAN $HIGH set_gpio $CPU_FAN $HIGH
set_gpio $HDD_FAN $HIGH
set_pwm set_pwm
} }
turn_off() { turn_off() {
set_gpio $CPU_FAN $LOW clean set_gpio $CPU_FAN $LOW clean
set_gpio $HDD_FAN $LOW clean
set_pwm clean set_pwm clean
} }