1
0
Fork 0
wasp-os/docs/main/theme.py
Daniel Thompson 4e9a576a2d docs: Add some main.py examples
These still need to be integrated into the generated documentation but
there were included in the most recent wasp-os video so let's get them
into the source code.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-01-10 15:19:42 +00:00

22 lines
584 B
Python

# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (C) 2020 Daniel Thompson
import wasp
# 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
)
from gadgetbridge import *
wasp.system.schedule()