remove forever loop
import time
-import alarm
import terminalio
import displayio
import adafruit_imageload
@@ -259,7 +258,6 @@ def time_to_sleep():
# ===========
# M A I N
# ===========
-while True:
# get current time
magtag.get_local_time()
now = time.localtime()
@@ -283,4 +281,6 @@ while True:
# ZZZZZZzzzzzzzzz
now = time.localtime()
magtag.exit_and_deep_sleep(time_to_sleep())
-
+#
+# code.py runs again when board wakes up
+#
