feature/event-customization-2024 #2
File diff suppressed because it is too large
Load Diff
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user