Compare commits
7 Commits
45e4b1951c
...
feature/ev
| Author | SHA1 | Date | |
|---|---|---|---|
| a8a44a923a | |||
| 4d7763d37c | |||
| 8faf3009c0 | |||
| f316e12426 | |||
| 88c83d95ca | |||
| 8a2f233fde | |||
| 6929919e78 |
3
scripts/.gitignore
vendored
Normal file
3
scripts/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*.bin
|
||||
*.png
|
||||
*.jpeg
|
||||
BIN
scripts/logo.bin
BIN
scripts/logo.bin
Binary file not shown.
BIN
scripts/logo.png
BIN
scripts/logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 767 B |
Binary file not shown.
|
Before Width: | Height: | Size: 74 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.4 KiB |
@@ -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 |
@@ -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
BIN
src/badges/badgem.bin
Normal file
Binary file not shown.
BIN
src/badges/badgem.png
Normal file
BIN
src/badges/badgem.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
File diff suppressed because it is too large
Load Diff
@@ -4,9 +4,9 @@ import badger_os
|
||||
from widgets import draw_window, pprint, ptitle, plength, ppara, button, draw_ui
|
||||
from random import random
|
||||
|
||||
IMAGE_WIDTH = 96
|
||||
IMAGE_HEIGHT = 96
|
||||
DELTA = 0
|
||||
# IMAGE_WIDTH = 96
|
||||
# IMAGE_HEIGHT = 96
|
||||
# DELTA = 0
|
||||
|
||||
# Check that the fortune directory exists, if not, make it
|
||||
try:
|
||||
@@ -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,11 +47,11 @@ 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)
|
||||
display.image(clippy_dat, IMAGE_WIDTH, IMAGE_HEIGHT, 212, 56)
|
||||
# clippy_dat = bytearray(int(IMAGE_WIDTH * IMAGE_HEIGHT / 8))
|
||||
# open(f"images/logo.bin", "rb").readinto(clippy_dat)
|
||||
# display.image(clippy_dat, IMAGE_WIDTH, IMAGE_HEIGHT, 212, 56)
|
||||
|
||||
# scrollbars
|
||||
display.pen(0)
|
||||
@@ -92,7 +92,7 @@ def draw_elements():
|
||||
display.pen(15)
|
||||
display.clear()
|
||||
|
||||
draw_ui(display, "Special")
|
||||
draw_ui(display, "About")
|
||||
|
||||
draw_clippy()
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
https://marianosciacco.it/publications/qrfuzz-paper/
|
||||
https://marianosciacco.it/
|
||||
Mariano Sciacco
|
||||
* IoT & Cloud Engineer
|
||||
* Vimar S.p.A.
|
||||
* (AWS Summit 2024)
|
||||
|
||||
If You Are Scanning This,
|
||||
It Is Too Late!
|
||||
Scan this QR Code :)
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user