摘要:
带环形缓冲区 import serial import time from datetime import datetime # 用于获取精确到秒的系统时间 class RingBuffer: """自定义15字符长度的环形缓冲区""" def __init__(self, capacity=8): 阅读全文
posted @ 2025-12-04 15:47
为鲸
阅读(2)
评论(0)
推荐(0)
摘要:
import threading import time import serial # 导入pyserial,用于串口初始化/读取 # 全局变量:存储IO状态(供其他模块调用) global_io_state = {"serial_data": None, "gpio_status": 0} # 阅读全文
posted @ 2025-12-04 15:45
为鲸
阅读(6)
评论(0)
推荐(0)

浙公网安备 33010602011771号