Loading...
MyDialog.java //定义一个接口 public interface chuang{ public void chuang(String string); } chuang chuang; public MyDialog(@NonNull Context context,chuang chuang) { super(context...
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(): ...
这里均以s8050为开关,s8050为NPN型三极管,以平的那面为参考面,左边阵脚接电源正极,中间针脚为开关,右边阵脚接电源负极不控速风扇:#!/usr/bin/python #coding:utf-8 import time import RPi.GPIO as GPIO #这里选择14(BCM)号针脚作为开关 GPIO_OUT = 14 def setup_GPIO(): ...