mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 17:38:39 +00:00
25 lines
521 B
Python
Executable File
25 lines
521 B
Python
Executable File
#!../../vendor/micropython/unix/micropython
|
|
import sys
|
|
sys.path.append('../../src')
|
|
|
|
from trezor import ui
|
|
from bl_common import bl_header
|
|
|
|
ui.display.clear()
|
|
ui.display.backlight(255)
|
|
|
|
# header
|
|
bl_header('Installing firmware')
|
|
|
|
ui.display.text_center(120, 192 + 32, "In progress ...", 1, ui.WHITE, ui.BLACK)
|
|
|
|
p = 0
|
|
while True:
|
|
|
|
ui.display.loader(p, 0, ui.BLUE, ui.BLACK)
|
|
ui.display.text_center(120, 240 // 2 + 14 // 2, "%d%%" % (p // 10), 2, ui.WHITE, ui.BLACK)
|
|
|
|
ui.display.refresh()
|
|
|
|
p = (p + 1) % 1000
|