Open main menu

Changes

Mediawiki 使用方法大全

497 bytes added, 18:12, 27 April 2022
==页面编辑==
[https://zh.wikipedia.org/wiki/Help:%E7%BC%96%E8%BE%91%E9%A1%B5%E9%9D%A2 页面编辑]
 
‎<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>
== All Category ==