UP tft form st7735
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user