From aef95e6d809b71f86110423914b34f6f13fb3795 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sat, 10 Oct 2020 14:06:44 +0100 Subject: [PATCH] apps: fibonacci_clock: Add an simple icon For some users the icon is pointless because they would rather install the clock on the quick ring but this clock is something of a novelty so it would be quite reasonable to only launch it when in the mood for decoding something! Happily the icon compresses nicely too! Signed-off-by: Daniel Thompson --- wasp/apps/fibonacci_clock.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/wasp/apps/fibonacci_clock.py b/wasp/apps/fibonacci_clock.py index 9e50add..9e4a794 100644 --- a/wasp/apps/fibonacci_clock.py +++ b/wasp/apps/fibonacci_clock.py @@ -24,11 +24,33 @@ import icons MONTH = 'JanFebMarAprMayJunJulAugSepOctNovDec' +# 2-bit RLE, generated from res/fibo_icon.png, 246 bytes +icon = ( + b'\x02' + b'`@' + b'?\xff\xffk\xd3\x01\xc9\x01@\x1er\x10\xd3\x01\xc9\x01' + b'r\x10\xd3\x01\xc9\x01r\x10\xd3\x01\xc9\x01r\x10\xd3\x01' + b'\xc9\x01r\x10\xd3\x01\xc9\x01r\x10\xd3\x01\xc9\x01r\x10' + b'\xd3\x01\xc9\x01r\x10\xd3\x01\xc9\x01r\x10\xd3\x0br\x10' + b'\xd3\x01I\x01r\x10\xd3\x01I\x01r\x10\xd3\x01I\x01' + b'r\x10\xd3\x01I\x01r\x10\xd3\x01I\x01r\x10\xd3\x01' + b'I\x01r\x10\xd3\x01I\x01r\x10\xd3\x01I\x01r\x10' + b'\xd3\x01I\x01r.r\x10\xdd\x01r\x10\xdd\x01r\x10' + b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10' + b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10' + b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10' + b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10' + b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10' + b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10' + b'\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r\x10\xdd\x01r?' + b'\xff\xffk' +) + class FibonacciClockApp(): """Displays the time as a Fibonacci Clock """ NAME = 'Fibo' - ICON = icons.app + ICON = icon def __init__(self): self.meter = wasp.widgets.BatteryMeter()