Added text display at the top.

Paco Hope 2023-11-28 09:24:32 -05:00
parent 9d7c579eab
commit d6f7250693
1 changed files with 3 additions and 1 deletions

View File

@ -53,8 +53,10 @@ def display_image(j, filename):
# write the date/time at the top
year, month, day, hour, minute, second, dow, _ = time.localtime(time.time() + tz_seconds)
graphics.text(f"{hour:02}:{minute:02} {year}-{month}-{day}", 1, 0)
graphics.set_pen(0)
graphics.set_font('sans')
# display.text(text, x, y, wordwrap, scale, angle, spacing)
graphics.text(f"{hour:02}:{minute:02} {year}-{month}-{day}", 230, 10, scale=0.5)
def show_error(text,y):
WIDTH = 600