t
All checks were successful
Deploy WebSocket Server / deploy (push) Successful in 20s

This commit is contained in:
jeremygan2021
2026-03-05 21:56:44 +08:00
parent b430051d29
commit 9558ea4b35
4 changed files with 63 additions and 31 deletions

View File

@@ -3,6 +3,12 @@ from machine import UART
from config import ttl_tx, ttl_rx
from printer_driver import TsplPrinter
def print_model_info(model_name):
"""
在控制台打印当前使用的模型名称
"""
print(f"\n[INFO] Current Image Generation Model: {model_name}\n")
def print_bitmap(printer, data, width, height, x_offset=0, y_offset=0, invert=False):
"""
发送位图数据到打印机