diff options
Diffstat (limited to 'docs/main/chrono.py')
| -rw-r--r-- | docs/main/chrono.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/main/chrono.py b/docs/main/chrono.py new file mode 100644 index 0000000..a1931d3 --- /dev/null +++ b/docs/main/chrono.py @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: LGPL-3.0-or-later +# Copyright (C) 2020 Daniel Thompson + +import wasp + +# Instantiate the analogue clock application and replace the default +# (digital) clock with this alternative. +from apps.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) + +from gadgetbridge import * +wasp.system.schedule() |
