Changes

Jump to navigation Jump to search

X708-Software

496 bytes added, 17:58, 27 April 2022
You can control the fan running at high speed or low speed via modify the CPU temperature threshold in fan.py script file
‎<syntaxhighlight lang="python" line>
#!/usr/bin/env python3
 
import subprocess
import time
 
from gpiozero import OutputDevice
 
 
ON_THRESHOLD = 55 # (degrees Celsius) Fan running at high speed at this temperature.
OFF_THRESHOLD = 50 # (degress Celsius) Fan running at low speed at this temperature.
SLEEP_INTERVAL = 5 # (seconds) How often we check the core temperature.
GPIO_PIN = 16 # Which GPIO pin you're using to control the fan. DON'T change it!
 
 
def get_temp():
</syntaxhighlight>
[[File:X708-v2-fan.png]]

Navigation menu