1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 07:18:09 +00:00
trezor-firmware/bootloader/ui-mockup/welcome-fw.py

31 lines
691 B
Python
Raw Normal View History

2016-10-03 17:39:21 +00:00
#!../../vendor/micropython/unix/micropython
import sys
sys.path.append('../../src')
from trezor import ui, res
from trezor.ui import button
CONFIRM_BUTTON = {
'bg-color': ui.GREEN,
'fg-color': ui.LIGHT_GREEN,
'text-style': ui.BOLD,
'border-color': ui.GREEN,
}
CONFIRM_BUTTON_ACTIVE = {
'bg-color': ui.GREEN,
'fg-color': ui.WHITE,
'text-style': ui.BOLD,
'border-color': ui.GREEN,
}
ui.display.backlight(255)
image = res.load('./logo.toif')
ui.display.image(60, 20, image)
ui.display.text_center(120, 174, "SatoshiLabs firmware", 1, ui.WHITE, ui.BLACK)
ui.display.text_center(120, 194, "v0.1.1", 1, ui.GREY, ui.BLACK)
while True:
ui.display.refresh()