mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
bootloader mockups
This commit is contained in:
parent
3fe688e9b4
commit
8eff4fcddf
20
bootloader/ui-mockup/progress.py
Executable file
20
bootloader/ui-mockup/progress.py
Executable file
@ -0,0 +1,20 @@
|
||||
#!../../vendor/micropython/unix/micropython
|
||||
import sys
|
||||
sys.path.append('../../src')
|
||||
|
||||
from trezor import ui
|
||||
|
||||
ui.display.backlight(255)
|
||||
|
||||
ui.display.bar(0, 192, 240, 48, ui.ORANGE)
|
||||
ui.display.text_center(120, 192 + 32, "Installing Update", 1, ui.WHITE, ui.ORANGE)
|
||||
|
||||
p = 0
|
||||
while True:
|
||||
|
||||
ui.display.loader(p, ui.BLUE, ui.BLACK)
|
||||
ui.display.text_center(120, 192 // 2 + 14 // 2, "%d%%" % (p // 10), 2, ui.WHITE, ui.BLACK)
|
||||
|
||||
ui.display.refresh()
|
||||
|
||||
p = (p + 1) % 1000
|
Loading…
Reference in New Issue
Block a user