Loading...
0x00因为之前用的Nokia5110显示有故障,所以在网友的推荐下接触到了SSD1306。显示模块型号:SSD1306 OLED显示范围:单色 128*64点阵测试机:树莓派zero w测试机系统:Raspbian stretch life开发语言:Python3采用驱动库:Adafruit Python SSD13060x01环境准备1.树莓派开启I2C接口终端输入sudo raspi-...
import time speed_down=[] speed_up=[] speed_name=[] speed_up_1=[] speed_down_1=[] while True: i=open('/proc/net/dev','r').readlines() for p in i: p=p.split( ) if p[1].isd...
包括: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...
/** * Okhttp封装 */ public class OkhttpNet { private static OkHttpClient client = null; private OkhttpNet() { } public static OkHttpClient getInstance() { if (client == nu...