From 22ca8886c25115df575f8a3e67a5da9059fc3f28 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Fri, 10 Apr 2020 20:22:51 +0100 Subject: wasp: draw565: Automatic RLE format conversion From here we can also bring colour to the launcher! diff --git a/res/clock_icon.png b/res/clock_icon.png index 165bf51..b08bbfb 100644 Binary files a/res/clock_icon.png and b/res/clock_icon.png differ diff --git a/res/settings_icon.png b/res/settings_icon.png index d1141b0..c8e8019 100644 Binary files a/res/settings_icon.png and b/res/settings_icon.png differ diff --git a/res/torch_icon.png b/res/torch_icon.png index bbd4db3..aa5f514 100644 Binary files a/res/torch_icon.png and b/res/torch_icon.png differ diff --git a/wasp/apps/launcher.py b/wasp/apps/launcher.py index 274ea9c..4e76ab1 100644 --- a/wasp/apps/launcher.py +++ b/wasp/apps/launcher.py @@ -66,7 +66,7 @@ class LauncherApp(): if not app: return draw.set_color(0xffff) - draw.rleblit(app.ICON, (x+13, y+12)) + draw.blit(app.ICON, x+13, y+12) draw.set_color(0xbdb6) draw.string(app.NAME, x, y+120-30, 120) diff --git a/wasp/apps/testapp.py b/wasp/apps/testapp.py index eece822..789454f 100644 --- a/wasp/apps/testapp.py +++ b/wasp/apps/testapp.py @@ -11,42 +11,8 @@ class TestApp(): NAME = 'Self Test' ICON = icons.app - # 2-bit RLE, generated from res/app_icon.png, 457 bytes - RLE_2BIT = ( - 96, 64, - b'\x1e@md