2016-10-04 16:49:02 +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-04 16:49:02 +00:00
|
|
|
from trezor.ui import button
|
2016-10-05 19:09:45 +00:00
|
|
|
from bl_common import bl_header
|
2016-10-04 16:49:02 +00:00
|
|
|
|
2016-10-05 18:17:32 +00:00
|
|
|
ui.display.clear()
|
2016-10-04 16:49:02 +00:00
|
|
|
ui.display.backlight(255)
|
|
|
|
|
|
|
|
# header
|
2016-10-05 19:09:45 +00:00
|
|
|
bl_header('Install new firmware')
|
2016-10-04 16:49:02 +00:00
|
|
|
|
|
|
|
# content
|
|
|
|
ui.display.text(10, 53, 'Warning!', ui.BOLD, ui.WHITE, ui.BLACK)
|
|
|
|
ui.display.text(10, 83, 'Never do this without', ui.NORMAL, ui.WHITE, ui.BLACK)
|
|
|
|
ui.display.text(10, 106, 'your recovery card and', ui.NORMAL, ui.WHITE, ui.BLACK)
|
|
|
|
ui.display.text(10, 129, 'due to different vendor', ui.NORMAL, ui.WHITE, ui.BLACK)
|
|
|
|
ui.display.text(10, 151, 'your storage will be', ui.NORMAL, ui.WHITE, ui.BLACK)
|
|
|
|
ui.display.text(10, 174, 'wipped!', ui.NORMAL, ui.WHITE, ui.BLACK)
|
|
|
|
|
2017-04-09 00:38:24 +00:00
|
|
|
confirm = button.Button((0, 240 - 48, 240, 48), 'Hold to confirm', normal_style=button.CONFIRM_BUTTON, active_style=button.CONFIRM_BUTTON_ACTIVE)
|
2016-10-04 16:49:02 +00:00
|
|
|
confirm.render()
|
|
|
|
|
|
|
|
while True:
|
2016-10-06 15:41:53 +00:00
|
|
|
ui.display.refresh()
|