diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-10-10 20:10:19 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-10-10 20:42:51 (GMT) |
| commit | a5f69ffe2629f187cd2a05f21b855bda5d7c2022 (patch) | |
| tree | eef265a5b10217d716c7ec4947561cd2c95bd453 /wasp | |
| parent | 89d91f7e5beb483f81c1f35259a3f9d75e04b016 (diff) | |
apps: fibonacci_clock: Enable status bar for notifications
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp')
| -rw-r--r-- | wasp/apps/fibonacci_clock.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wasp/apps/fibonacci_clock.py b/wasp/apps/fibonacci_clock.py index 9e4a794..6133bb9 100644 --- a/wasp/apps/fibonacci_clock.py +++ b/wasp/apps/fibonacci_clock.py @@ -54,6 +54,7 @@ class FibonacciClockApp(): def __init__(self): self.meter = wasp.widgets.BatteryMeter() + self.notifier = wasp.widgets.StatusBar() self.fields = b'\x05\x03\x02\x01\x01' self.color_codes = [0xffff,0xf800,0x07e0,0x001f] # White, red, green and blue @@ -91,6 +92,7 @@ class FibonacciClockApp(): if now[3] == self.on_screen[3] and now[4] == self.on_screen[4]: if now[5] != self.on_screen[5]: self.meter.update() + self.notifier.update() self.on_screen = now return False draw = wasp.watch.drawable @@ -124,4 +126,5 @@ class FibonacciClockApp(): 0, 185, width=240) self.meter.update() + self.notifier.update() return True |
