From 2d77ebc1304ee8f64a2901078538a4398be0daae Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sun, 20 Jun 2021 10:47:32 +0100 Subject: [PATCH] boards: simulator: main: Update the ChronoApp example Currently the ChronoApp example code is both broken (missing apps. prefix) and doesn't use the latest API for registering watch faces. Fix this. Whilst here let's also provide an example for the DemoApp since that is not included in the Software chooser. Signed-off-by: Daniel Thompson --- wasp/boards/simulator/main.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/wasp/boards/simulator/main.py b/wasp/boards/simulator/main.py index 618fae5..05a9655 100644 --- a/wasp/boards/simulator/main.py +++ b/wasp/boards/simulator/main.py @@ -26,13 +26,12 @@ wasp.system.set_weather_info({ # with backlight activations. wasp.system.blank_after = 300 -# Instantiate the analogue clock application and replace the default +# Replace the default (digital) clock with an alternative # (digital) clock with this alternative. -#from chrono import ChronoApp -#clock = wasp.system.quick_ring[0] -#wasp.system.quick_ring[0] = ChronoApp() -#wasp.system.switch(wasp.system.quick_ring[0]) -#wasp.system.register(clock) +#wasp.system.register('apps.chrono.ChronoApp', watch_face=True) + +# Enable the demostration application +#wasp.system.register('apps.demo.DemoApp') # Adopt a basic all-orange theme #wasp.system.set_theme(