mirror of
https://github.com/kxgx/2.13-Ink-screen-clock.git
synced 2026-05-08 00:24:04 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99780f1bf9 |
@@ -263,7 +263,6 @@ def Partial_refresh():#局刷函数
|
|||||||
'''内存百分比显示'''
|
'''内存百分比显示'''
|
||||||
|
|
||||||
retry_interval = 180 # 设置重试间隔时间(秒)
|
retry_interval = 180 # 设置重试间隔时间(秒)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
##################屏幕初始化#########################
|
##################屏幕初始化#########################
|
||||||
@@ -280,6 +279,7 @@ while True:
|
|||||||
epd.init()
|
epd.init()
|
||||||
epd.Clear(0xFF)
|
epd.Clear(0xFF)
|
||||||
epd.sleep()
|
epd.sleep()
|
||||||
|
time.sleep(300)
|
||||||
break # 如果脚本执行成功,则退出循环
|
break # 如果脚本执行成功,则退出循环
|
||||||
except (OSError, Exception) as e: # 捕获你提到的异常
|
except (OSError, Exception) as e: # 捕获你提到的异常
|
||||||
logging.error("发生了错误: %s", e)
|
logging.error("发生了错误: %s", e)
|
||||||
|
|||||||
Reference in New Issue
Block a user