summaryrefslogtreecommitdiff
path: root/wasp/boards/nitrogen/watch.py
diff options
context:
space:
mode:
Diffstat (limited to 'wasp/boards/nitrogen/watch.py')
-rw-r--r--wasp/boards/nitrogen/watch.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/wasp/boards/nitrogen/watch.py b/wasp/boards/nitrogen/watch.py
new file mode 100644
index 0000000..fdfdba9
--- /dev/null
+++ b/wasp/boards/nitrogen/watch.py
@@ -0,0 +1,5 @@
+from machine import RTCounter as RTC
+
+# Start measuring time (and feeding the watchdog)
+rtc = RTC(1, mode=RTC.PERIODIC)
+rtc.start()