summaryrefslogtreecommitdiff
path: root/wasp/boards/nitrogen/watch.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'wasp/boards/nitrogen/watch.py.in')
-rw-r--r--wasp/boards/nitrogen/watch.py.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/wasp/boards/nitrogen/watch.py.in b/wasp/boards/nitrogen/watch.py.in
new file mode 100644
index 0000000..0148d95
--- /dev/null
+++ b/wasp/boards/nitrogen/watch.py.in
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: LGPL-3.0-or-later
+# Copyright (C) 2020 Daniel Thompson
+
+from machine import RTCounter as RTC
+
+# Start measuring time (and feeding the watchdog)
+rtc = RTC(1, mode=RTC.PERIODIC)
+rtc.start()