Added text display at the top.
parent
9d7c579eab
commit
d6f7250693
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue