2020-07-07 22:22:12 +02:00
|
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
# Copyright (C) 2020 Daniel Thompson
|
|
|
|
|
|
|
|
import wasp
|
2020-11-08 15:28:38 +01:00
|
|
|
|
2021-01-10 11:40:03 +01:00
|
|
|
# Test app is used a lot on the simulator. Let's make sure it is
|
|
|
|
# registered by default.
|
|
|
|
wasp.system.register('apps.testapp.TestApp')
|
|
|
|
|
2021-01-03 15:59:14 +01:00
|
|
|
# Ensure there's something interesting to look at ;-)
|
2020-11-12 22:41:46 +01:00
|
|
|
wasp.system.set_music_info({
|
|
|
|
'track': 'Tasteless Brass Duck',
|
|
|
|
'artist': 'Dreams of Bamboo',
|
|
|
|
})
|
|
|
|
|
2021-03-31 01:10:24 +02:00
|
|
|
wasp.system.set_weather_info({
|
2021-08-18 19:13:49 +02:00
|
|
|
'temp': 295,
|
|
|
|
'hum': 100,
|
2021-03-31 01:10:24 +02:00
|
|
|
'txt': 'Cloudy',
|
2021-08-18 19:13:49 +02:00
|
|
|
'wind': 25,
|
2021-03-31 01:10:24 +02:00
|
|
|
'loc': 'Toronto'
|
|
|
|
})
|
|
|
|
|
2021-02-25 08:37:10 +01:00
|
|
|
|
|
|
|
# Increase the display blanking time to avoid spamming the console
|
|
|
|
# with backlight activations.
|
|
|
|
wasp.system.blank_after = 300
|
|
|
|
|
2021-06-20 11:47:32 +02:00
|
|
|
# Replace the default (digital) clock with an alternative
|
2021-01-03 15:59:14 +01:00
|
|
|
# (digital) clock with this alternative.
|
2021-06-20 11:47:32 +02:00
|
|
|
#wasp.system.register('apps.chrono.ChronoApp', watch_face=True)
|
|
|
|
|
|
|
|
# Enable the demostration application
|
|
|
|
#wasp.system.register('apps.demo.DemoApp')
|
2021-01-03 15:59:14 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
# )
|
|
|
|
|
2020-07-07 22:22:12 +02:00
|
|
|
wasp.system.run()
|