实现显示屏。
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
|
||||
import time
|
||||
import ujson
|
||||
import gc
|
||||
import _thread
|
||||
import machine
|
||||
import network
|
||||
import socket
|
||||
import ubinascii
|
||||
import hashlib
|
||||
import urandom
|
||||
import select
|
||||
import json
|
||||
|
||||
from SingletonThreadPool import SingletonThreadPool
|
||||
from InterphoneHandler import InterphoneHandler
|
||||
from SystemHandler import SystemHandler
|
||||
|
||||
from ConfigManager import ConfigManager
|
||||
|
||||
handle_task_id = None
|
||||
|
||||
@@ -17,6 +28,7 @@ WIFI_PASSWORD = "11223344"
|
||||
WS_HOST = "websocket.julecn.com"
|
||||
WS_PORT = 80
|
||||
|
||||
thread_pool = SingletonThreadPool()
|
||||
|
||||
# I2S 引脚配置
|
||||
BCLK_PIN = 13
|
||||
@@ -31,6 +43,12 @@ BITS_PER_SAMPLE = 16 # 修改为 16 位
|
||||
CHANNELS = 2
|
||||
BUFFER_SIZE = 8192
|
||||
|
||||
# 看门狗变量
|
||||
watchdog_last_reset = time.time()
|
||||
|
||||
# 初始化配置管理器
|
||||
config_manager = ConfigManager()
|
||||
|
||||
# 播放标志
|
||||
player_flag = False
|
||||
# 播放名称
|
||||
|
||||
Reference in New Issue
Block a user