fixing text formatting

This commit is contained in:
Lucas
2022-03-31 00:39:01 -04:00
parent f8b085c1e0
commit 504b5156f8
+7
View File
@@ -32,7 +32,14 @@ def is_event_active(events, now):
def is_work_time(now): def is_work_time(now):
return now < WORK_STOP and now > WORK_START return now < WORK_STOP and now > WORK_START
def format_text(text):
text = text[:16]
text += f"\n" + text[16:]
return text
def update_display(color, text, cursor = False, blink = False): def update_display(color, text, cursor = False, blink = False):
print(text)
text = format_text(text)
print(text) print(text)
lcd.color = color lcd.color = color
lcd.message = text lcd.message = text