From 233c136a5c5f1fd4fc940400bc80951c76828811 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sun, 29 Nov 2020 12:23:05 +0000 Subject: [PATCH] apps: alarm: Add the alarm app to the library Like the other library applications this is enabled in the simulator and included in the flash image but is disabled by default to conserve RAM (and to give time to new apps to mature and receive improvements). Signed-off-by: Daniel Thompson --- docs/apps.rst | 7 +++++++ wasp/boards/manifest_240x240.py | 1 + wasp/boards/simulator/main.py | 3 +++ 3 files changed, 11 insertions(+) diff --git a/docs/apps.rst b/docs/apps.rst index b8fc67c..88ef2d4 100644 --- a/docs/apps.rst +++ b/docs/apps.rst @@ -43,6 +43,13 @@ It can be enabled by modifying ``main.py``. Integration ----------- +.. automodule:: apps.alarm + +This app is enabled by default in the simulator. +The app is also frozen into the firmware image but it is disabled by +default in order to keep RAM available for user developed applications. +It can be enabled by modifying ``main.py``. + .. automodule:: apps.musicplayer This app is enabled by default in the simulator. diff --git a/wasp/boards/manifest_240x240.py b/wasp/boards/manifest_240x240.py index c99fdb8..e2febbf 100644 --- a/wasp/boards/manifest_240x240.py +++ b/wasp/boards/manifest_240x240.py @@ -3,6 +3,7 @@ """Shared manifest for applications that work well on a 240x240 display.""" manifest = ( + 'apps/alarm.py', 'apps/clock.py', 'apps/flashlight.py', 'apps/gameoflife.py', diff --git a/wasp/boards/simulator/main.py b/wasp/boards/simulator/main.py index eee57d4..fb7698b 100644 --- a/wasp/boards/simulator/main.py +++ b/wasp/boards/simulator/main.py @@ -3,6 +3,9 @@ import wasp +from apps.alarm import AlarmApp +wasp.system.register(AlarmApp()) + from apps.fibonacci_clock import FibonacciClockApp wasp.system.register(FibonacciClockApp())