1
0
Fork 0
wasp-os/wasp/boards/nitrogen/watch.py
2020-03-22 15:40:18 +00:00

8 lines
215 B
Python

# 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()