This commit is contained in:
@@ -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):
|
||||
"""
|
||||
发送位图数据到打印机
|
||||
|
||||
Reference in New Issue
Block a user