2016-10-03 13:27:29 +00:00
|
|
|
#!../../vendor/micropython/unix/micropython
|
|
|
|
import sys
|
|
|
|
sys.path.append('../../src')
|
|
|
|
|
2017-04-09 00:38:24 +00:00
|
|
|
from trezor import ui
|
2016-10-05 19:09:45 +00:00
|
|
|
from bl_common import bl_header
|
2016-10-03 13:27:29 +00:00
|
|
|
|
2016-10-05 18:17:32 +00:00
|
|
|
ui.display.clear()
|
2016-10-03 13:27:29 +00:00
|
|
|
ui.display.backlight(255)
|
|
|
|
|
2016-10-04 16:49:02 +00:00
|
|
|
# header
|
2016-10-05 19:09:45 +00:00
|
|
|
bl_header('Installing firmware')
|
2016-10-04 16:49:02 +00:00
|
|
|
|
|
|
|
ui.display.text_center(120, 192 + 32, "In progress ...", 1, ui.WHITE, ui.BLACK)
|
2016-10-03 13:27:29 +00:00
|
|
|
|
|
|
|
p = 0
|
|
|
|
while True:
|
|
|
|
|
2017-04-09 00:38:24 +00:00
|
|
|
ui.display.loader(p, 0, ui.BLUE, ui.BLACK)
|
2016-10-04 14:33:57 +00:00
|
|
|
ui.display.text_center(120, 240 // 2 + 14 // 2, "%d%%" % (p // 10), 2, ui.WHITE, ui.BLACK)
|
2016-10-03 13:27:29 +00:00
|
|
|
|
2016-10-06 15:41:53 +00:00
|
|
|
ui.display.refresh()
|
2016-10-03 13:27:29 +00:00
|
|
|
|
|
|
|
p = (p + 1) % 1000
|