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...
import commands import sys import os Error = "\033[1;31;40m" Through = "\033[1;32;40m" Tail = "\033[0m" def fen(x): status, result = commands.getstatusoutput( ...
import os import time def main(): i = 0 while i < 1000: res = "raspistill -t 1 -o img/"+str(i)+".jpg" # os.system(res) print(res) i +...
#!/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(): ...