先理一下思路和原理 接线图: micropython main.py 程序代码: from umqtt.simple import MQTTClient from machine import SoftI2C, Pin from machine import Timer from ssd1306 import SSD1306_I2C from font import Font from scron.week import simple_cron from scron.decorators import run_times, call_counter, time_since_last_call import _thread import ubinascii import network import time import random import json import bluetooth import machine scl_pin = Pin(7) # 或 Pin.OUT, Pin.LOW,具体取决于你的需求 sda_pin = Pin(6) try: i2c = SoftI2C(scl = scl_pin,sda = sda_pin,freq = 10000) # 扫描 I2C 设备 devices = i2c.scan() if not devices: print("No I2C devices found") else: print("I2C devices found:", devices) oled = SSD1306_I2C(128,64,i2c) print("SSD1306...
阅读全文目前手上有两块Orange Pi zero3 把其中一块利用起来 初步想法: 1. 安装 debian 开启wifi的 ap模式 (官方的openwrt...
阅读全文把官方能下载到的各个固件挨个试了一个遍 从我的实用角度来看, andriod12 TV和 openwrt 最...
阅读全文源代码为php基于swoole框架书写 它不仅一键完成网站分析、性能检测、SEO优化建议,还...
阅读全文 webman +websocket的chat 练手源代码 本程序只是一个chat原型实现理论,只为我本人学习使用,参考...
阅读全文