feature/event-customization-2024 #2

Merged
Maxelweb merged 8 commits from feature/event-customization-2024 into master 2024-05-22 23:12:17 +02:00
2 changed files with 11 additions and 1311 deletions
Showing only changes of commit 8faf3009c0 - Show all commits

File diff suppressed because it is too large Load Diff

View File

@@ -25,8 +25,8 @@ state = {
"running": "badge_app", "running": "badge_app",
} }
IMAGE_WIDTH = 64 IMAGE_WIDTH = 29
IMAGE_HEIGHT = 64 IMAGE_HEIGHT = 32
def render(): def render():
display.pen(15) display.pen(15)
@@ -47,10 +47,10 @@ def draw_clippy():
y = 21 y = 21
width = 294 width = 294
height = 106 height = 106
draw_window(display, x, y, width, height, " Special ") draw_window(display, x, y, width, height, " Information ")
clippy_dat = bytearray(int(IMAGE_WIDTH * IMAGE_HEIGHT / 8)) clippy_dat = bytearray(int(IMAGE_WIDTH * IMAGE_HEIGHT / 8))
open(f"images/clippy.bin", "rb").readinto(clippy_dat) open(f"images/logo.bin", "rb").readinto(clippy_dat)
display.image(clippy_dat, IMAGE_WIDTH, IMAGE_HEIGHT, 212, 56) display.image(clippy_dat, IMAGE_WIDTH, IMAGE_HEIGHT, 212, 56)
# scrollbars # scrollbars
@@ -92,7 +92,7 @@ def draw_elements():
display.pen(15) display.pen(15)
display.clear() display.clear()
draw_ui(display, "Special") draw_ui(display, "About")
draw_clippy() draw_clippy()