Loading...
包括:CPU温度,系统运行时间,网卡名称,上下行网速from PCD8544 import PCD8544 as lcd import time import os import threading cpu_info="" time_info="" speed_down=[] speed_up=[] speed_name=[] # 显示cpu温度...
接线:dc 13 rst 5 sclk 26 din 19 cs 6 bl 21需要的python库Adafruit_GPIO屏幕显示驱动:# coding:utf-8 import time import Adafruit_GPIO as GPIO import Adafruit_GPIO.SPI as SPI LCDWIDTH = 84 LCDHEIGHT = 48 ROWPIXEL...
#!/bin/python import os import time import commands ##开启frp def start(): os.system('/home/pi/frp/frpc -c /home/pi/frp/frpc.ini > /dev/null 2>&1 &') ##检查是否运行frp def state(): ...
这里均以s8050为开关,s8050为NPN型三极管,以平的那面为参考面,左边阵脚接电源正极,中间针脚为开关,右边阵脚接电源负极不控速风扇:#!/usr/bin/python #coding:utf-8 import time import RPi.GPIO as GPIO #这里选择14(BCM)号针脚作为开关 GPIO_OUT = 14 def setup_GPIO(): ...