summaryrefslogtreecommitdiff
path: root/wasp/boards
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2021-06-20 09:47:32 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2021-06-20 09:47:32 (GMT)
commit2d77ebc1304ee8f64a2901078538a4398be0daae (patch)
tree40b695fc30ae07d99006979be4f60dce7caf1cfb /wasp/boards
parentb6709997ccc3ff66cc73e01503edda128e130143 (diff)
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 <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/boards')
-rw-r--r--wasp/boards/simulator/main.py11
1 files 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(