summaryrefslogtreecommitdiff
path: root/wasp/boards/nitrogen/watch.py.in
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-06-17 20:35:19 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-06-17 20:35:19 (GMT)
commit6c7337fb1ed7c4afa033daba4991a620b4a5f758 (patch)
tree142e88cb9d4cf5adeb1ceadf849f34dc6c461285 /wasp/boards/nitrogen/watch.py.in
parent33e56111ddc453e309b28a2a7a737a80d06bc404 (diff)
dsd6, nitrogen: Make them build again
Fixes: 9eb9b74 ("Update preprocess to use $(BOARD)"). Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
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()