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
9 changed files with 8 additions and 8 deletions
Showing only changes of commit f316e12426 - Show all commits

View File

@@ -3,7 +3,7 @@ import os
import badger_os
from widgets import draw_window, pprint, ptitle, plength, button, draw_ui
IMAGE_WIDTH = 86
IMAGE_WIDTH = 96
IMAGE_HEIGHT = 96
DELTA = 0

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -2,4 +2,4 @@ Mariano Sciacco
IoT & Cloud Engineer
Vimar S.p.A.
git.marianosciacco.it
badge.bin
badgem.bin

BIN
src/badges/badgem.bin Normal file

Binary file not shown.

BIN
src/badges/badgem.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -38,15 +38,15 @@ def draw_about():
display.image(image, 32, 32, 86, 56)
pprint(display, "AWS Summit", 125, 56, 0)
pprint(display, "---", 125, 66, 0)
pprint(display, "Milan (Italy)", 125, 76, 0)
pprint(display, "2024", 125, 86, 0)
# pprint(display, "---", 125, 66, 0)
pprint(display, "Milan (Italy)", 125, 66, 0)
pprint(display, "2024", 125, 76, 0)
def render():
display.pen(15)
display.clear()
draw_ui(display, "About")
draw_ui(display, "Event")
draw_about()

View File

@@ -51,7 +51,7 @@ def draw_qr_code(ox, oy, size, code):
def draw_qr_file(n):
draw_window(display, 6, 26, 282, 94, " About us ")
draw_window(display, 6, 26, 282, 94, " About me ")
file = CODES[n]
codetext = open("qrcodes/{}".format(file), "r")

View File

@@ -187,7 +187,7 @@ def draw_background(display):
# display.image(image, 296, 128, 0, 0)
def draw_menu(display, selected):
menu = "Badge QR Special About"
menu = "Badge QR About Event"
# logo
display.pen(0)