feat: update fortune app
This commit is contained in:
@@ -25,8 +25,8 @@ state = {
|
||||
"running": "badge_app",
|
||||
}
|
||||
|
||||
IMAGE_WIDTH = 64
|
||||
IMAGE_HEIGHT = 64
|
||||
IMAGE_WIDTH = 29
|
||||
IMAGE_HEIGHT = 32
|
||||
|
||||
def render():
|
||||
display.pen(15)
|
||||
@@ -47,10 +47,10 @@ def draw_clippy():
|
||||
y = 21
|
||||
width = 294
|
||||
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))
|
||||
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)
|
||||
|
||||
# scrollbars
|
||||
@@ -92,7 +92,7 @@ def draw_elements():
|
||||
display.pen(15)
|
||||
display.clear()
|
||||
|
||||
draw_ui(display, "Special")
|
||||
draw_ui(display, "About")
|
||||
|
||||
draw_clippy()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user