Added LED for when app draws, and delay at start to fix USB issue

pull/608/head
ZodiusInfuser 2022-12-20 16:28:36 +00:00 zatwierdzone przez Phil Howard
rodzic 417f5d9210
commit 4c0a34769d
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -10,6 +10,9 @@ import inky_helper as ih
# WIFI_SSID = "Your WiFi SSID"
# WIFI_PASSWORD = "Your WiFi password"
# A short delay to give USB chance to initialise
time.sleep(0.1)
# Setup for the display.
graphics = PicoGraphics(DISPLAY)
WIDTH, HEIGHT = graphics.get_bounds()
@ -140,5 +143,7 @@ print(file)
while True:
ih.app.update()
ih.led_warn.on()
ih.app.draw()
ih.led_warn.off()
ih.sleep(ih.app.UPDATE_INTERVAL)