背光亮度可配置

This commit is contained in:
2026-01-25 10:17:02 +08:00
parent ab078c6371
commit 581515df44
2 changed files with 16 additions and 9 deletions

View File

@@ -187,9 +187,6 @@ async def animation_task():
# 每轮清理一次内存
gc.collect()
if current_frame == frame_count:
# gc.collect()
print(f"Memory: {gc.mem_free()}")
frame += 1
@@ -204,7 +201,7 @@ async def animation_task():
def start():
# 初始化液晶屏
display.init_display()
display.init_display(config.get("bl_mode") != "gpio")
display.brightness(int(config.get("brightness", 10)))
display.show_jpg("/rom/www/images/T1.jpg", 80, 80)
gc.collect()