Add firmware Version to display

This commit is contained in:
Your Name 2021-10-16 18:18:50 +01:00
parent 222aa46123
commit f7a2a8a261
2 changed files with 12 additions and 2 deletions

View file

@ -60,8 +60,10 @@ def write_ip_to_screen():
try:
ip = str(get_ip())
print(f"writing {ip} to display")
Display.write(2, ip)
Display.write(1, datetime.datetime.now().strftime("%b %d %H:%M:%S"))
Display.write(1, f"FW. V{Spi.get_version()}")
Display.write(2, datetime.datetime.now().strftime("%b %d %H:%M:%S"))
Display.write(3, "IP:")
Display.write(4, ip)
time.sleep(5)
except Exception as e:
print(f"Exception in write ip thread: {e}")