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>
This commit is contained in:
Daniel Thompson 2021-06-20 10:47:32 +01:00
parent b6709997cc
commit 2d77ebc130
1 changed files with 5 additions and 6 deletions

View File

@ -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(