From 9eb5d19e35304fb9082babf2a485942b887cad4f Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sat, 1 Feb 2020 13:44:28 +0000 Subject: [PATCH] wasp: dsd6/nitrogen: Fix the frozen manifests --- wasp/boards/dsd6/manifest.py | 11 +++++++++++ wasp/boards/dsd6/watch.py | 5 +++++ wasp/boards/nitrogen/manifest.py | 13 +++++++++++++ wasp/boards/nitrogen/watch.py | 5 +++++ 4 files changed, 34 insertions(+) create mode 100644 wasp/boards/dsd6/watch.py create mode 100644 wasp/boards/nitrogen/watch.py diff --git a/wasp/boards/dsd6/manifest.py b/wasp/boards/dsd6/manifest.py index e69de29..9efab20 100644 --- a/wasp/boards/dsd6/manifest.py +++ b/wasp/boards/dsd6/manifest.py @@ -0,0 +1,11 @@ +freeze('../..', + ( + 'demo.py', + 'drivers/battery.py', + 'drivers/signal.py', + 'drivers/vibrator.py', + ), + opt=3 +) +freeze('.', 'watch.py', opt=3) + diff --git a/wasp/boards/dsd6/watch.py b/wasp/boards/dsd6/watch.py new file mode 100644 index 0000000..fdfdba9 --- /dev/null +++ b/wasp/boards/dsd6/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() diff --git a/wasp/boards/nitrogen/manifest.py b/wasp/boards/nitrogen/manifest.py index e69de29..f60ebd9 100644 --- a/wasp/boards/nitrogen/manifest.py +++ b/wasp/boards/nitrogen/manifest.py @@ -0,0 +1,13 @@ +freeze('../..', + ( + 'demo.py', + 'drivers/battery.py', + 'drivers/signal.py', + 'drivers/st7789.py', + 'drivers/vibrator.py', + 'logo.py', + ), + opt=3 +) +freeze('.', 'watch.py', opt=3) + 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()