PM_K-1 firmware: show version (small, dim) top-right of the logo. APP_VERSION -> 0.0.4
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ca44aa833d
commit
2b113a18cc
2 changed files with 5 additions and 2 deletions
Binary file not shown.
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
import board, busio, digitalio, analogio, pwmio, displayio, vectorio, time, json, gc, os, supervisor
|
||||
supervisor.runtime.autoreload = False # we write our own files (log + pushed programs); never self-restart
|
||||
APP_VERSION = "0.0.3" # firmware version (the A/B updater pushes/compares this)
|
||||
APP_VERSION = "0.0.4" # firmware version (the A/B updater pushes/compares this)
|
||||
try:
|
||||
import rtc # set from the editor's clock SysEx so the log has real timestamps
|
||||
except ImportError:
|
||||
|
|
@ -366,11 +366,14 @@ class App:
|
|||
root = displayio.Group(); self.display.root_group = root
|
||||
self.bg_pal = solid(C_BG) # recolored on play/stop (black <-> running gray)
|
||||
root.append(vectorio.Rectangle(pixel_shader=self.bg_pal, width=WIDTH, height=HEIGHT, x=0, y=0))
|
||||
# header: VARASYS logo (left, no tagline) + MIDI / USB status icons (right)
|
||||
# header: VARASYS logo (left, no tagline) + version (small, top, right of the logo) + MIDI/USB icons (right)
|
||||
if LOGO:
|
||||
tg, _p, lw, lh = make_glyph(LOGO, C_CYAN, C_BG); tg.x = 10; tg.y = 9; root.append(tg)
|
||||
lx = 10 + lw
|
||||
else:
|
||||
tg, w, h = make_text("VARASYS", FONT_M, C_CYAN, C_BG); tg.x = 10; tg.y = 8; root.append(tg)
|
||||
lx = 10 + w
|
||||
vtg, vw, vh = make_text("v" + APP_VERSION, FONT_S, C_DIM, C_BG); vtg.x = lx + 6; vtg.y = 8; root.append(vtg)
|
||||
x = WIDTH - 12
|
||||
for asset, attr in ((ICON_USB, "ic_usb_pal"), (ICON_MIDI, "ic_midi_pal")):
|
||||
if asset:
|
||||
|
|
|
|||
Loading…
Reference in a new issue