From f1c6450ec496173a9fc74d159d67286dcd536a1d Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 12 Dec 2023 14:58:06 +0100 Subject: [PATCH] Turn on HDD fan in the enclosure --- scripts/SATA-hat.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/SATA-hat.sh b/scripts/SATA-hat.sh index 9cbd704..a409752 100755 --- a/scripts/SATA-hat.sh +++ b/scripts/SATA-hat.sh @@ -6,6 +6,7 @@ PWM_PATH="$BASE_PATH"/pwm/pwmchip0 # GPIO pins CPU_FAN=12 +HDD_FAN=13 # Values LOW=0 @@ -49,11 +50,13 @@ set_pwm() { turn_on() { set_gpio $CPU_FAN $HIGH + set_gpio $HDD_FAN $HIGH set_pwm } turn_off() { set_gpio $CPU_FAN $LOW clean + set_gpio $HDD_FAN $LOW clean set_pwm clean }