637f5d6e8a
Relaunching the simulator to run tests quickly gets frustrating if the Self Test is disabled by default. Change this. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
# Copyright (C) 2020 Daniel Thompson
|
|
|
|
import wasp
|
|
|
|
# Test app is used a lot on the simulator. Let's make sure it is
|
|
# registered by default.
|
|
wasp.system.register('apps.testapp.TestApp')
|
|
|
|
# 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()
|