diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2021-01-03 14:59:14 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2021-01-03 14:59:14 (GMT) |
| commit | 3813eb29114d7c2fd73584c8a3a0ab89238bfe84 (patch) | |
| tree | dd899c16fcabc2330b069b52260e2009035f63e5 /wasp/boards/simulator/main.py | |
| parent | 231f3b6fdd531b1f3fcec927bc297f4c89853aec (diff) | |
manager: Enable Software by default
Enabling software by default allows us disable several other applications
by default because there is now a GUI based route to enable them.
This does require a few tweaks to the test suite and allows allows us to
remove a lot of boilerplate text from the application library document
since it is no longer relavent.
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/boards/simulator/main.py')
| -rw-r--r-- | wasp/boards/simulator/main.py | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/wasp/boards/simulator/main.py b/wasp/boards/simulator/main.py index ea943f3..bd43d4e 100644 --- a/wasp/boards/simulator/main.py +++ b/wasp/boards/simulator/main.py @@ -3,26 +3,33 @@ import wasp -from apps.alarm import AlarmApp -wasp.system.register(AlarmApp()) - -from apps.fibonacci_clock import FibonacciClockApp -wasp.system.register(FibonacciClockApp()) - -from apps.gameoflife import GameOfLifeApp -wasp.system.register(GameOfLifeApp()) - -from apps.snake import SnakeGameApp -wasp.system.register(SnakeGameApp()) - -from apps.calc import CalculatorApp -wasp.system.register(CalculatorApp()) - -from apps.musicplayer import MusicPlayerApp -wasp.system.register(MusicPlayerApp()) +# Ensure there's something interesting to look at ;-) wasp.system.set_music_info({ 'track': 'Tasteless Brass Duck', 'artist': 'Dreams of Bamboo', }) +# Instantiate the analogue clock application and replace the default +# (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) + +# Adopt a basic all-orange theme +#wasp.system.set_theme( +# b'\xff\x00' # ble +# b'\xff\x00' # scroll-indicator +# b'\xff\x00' # battery +# b'\xff\x00' # status-clock +# b'\xff\x00' # notify-icon +# b'\xff\x00' # bright +# b'\xbe\xe0' # mid +# b'\xff\x00' # ui +# b'\xff\x00' # spot1 +# b'\xff\x00' # spot2 +# b'\x00\x0f' # contrast +# ) + wasp.system.run() |
