This commit is contained in:
jeremygan2021
2026-03-04 19:42:24 +08:00
parent ef496b8d13
commit 87af3b346f
2 changed files with 9 additions and 4 deletions

View File

@@ -70,3 +70,11 @@ CAMERA.mic = {
# =============================================================================
# 默认使用 NON_CAMERA (普通版),请根据你的实际硬件选择
CURRENT_CONFIG = NON_CAMERA
# =============================================================================
# 服务器配置
# =============================================================================
SERVER_IP = "118.196.74.38"
SERVER_PORT = 8811
SERVER_PATH = "/ws/audio"
SERVER_URL = f"ws://{SERVER_IP}:{SERVER_PORT}{SERVER_PATH}"

View File

@@ -4,7 +4,7 @@ import struct
import gc
import network
import st7789py as st7789
from config import CURRENT_CONFIG
from config import CURRENT_CONFIG, SERVER_URL
from audio import AudioPlayer, Microphone
# Define colors that might be missing in st7789py
@@ -16,9 +16,6 @@ import ujson
WIFI_SSID = "Tangledup-AI"
WIFI_PASS = "djt12345678"
SERVER_IP = "6.6.6.88"
SERVER_PORT = 8000
SERVER_URL = f"ws://{SERVER_IP}:{SERVER_PORT}/ws/audio"
IMAGE_STATE_IDLE = 0
IMAGE_STATE_RECEIVING = 1