UP tft form st7735

This commit is contained in:
JiXieShi
2024-09-16 22:51:12 +08:00
parent 590ac774dd
commit 14ca8c36a9
14 changed files with 1393 additions and 654 deletions

View File

@@ -130,11 +130,11 @@ def generate_and_write_chinese_array_output():
# size = (12, 12)
size = (16, 16)
# chinese_array = generate_chinese_array("当前液位", 'simsun', size)
chinese_array = generate_chinese_array("气泡式液位计当前", 'simsun', size)
chinese_array = generate_chinese_array("星海科技机械师", 'simsun', size)
# 将数组格式化为文本输出并写入文件
text_output = format_chinese_array_as_text(chinese_array, size)
with open('oled_font_chuc.h', 'w') as file:
with open('font_chuc.h', 'w', encoding="utf8") as file:
file.write(text_output)