mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 21:48:13 +00:00
33 lines
885 B
Python
Executable File
33 lines
885 B
Python
Executable File
#!../../vendor/micropython/unix/micropython
|
|
import sys
|
|
sys.path.append('../../src')
|
|
|
|
from trezor import ui, res
|
|
from trezor.ui import button
|
|
|
|
DEFAULT_BUTTON = {
|
|
'bg-color': ui.DARK_GREY,
|
|
'fg-color': ui.GREY,
|
|
'text-style': ui.NORMAL,
|
|
'border-color': ui.BLACK,
|
|
}
|
|
DEFAULT_BUTTON_ACTIVE = {
|
|
'bg-color': ui.GREY,
|
|
'fg-color': ui.WHITE,
|
|
'text-style': ui.BOLD,
|
|
'border-color': ui.GREY,
|
|
}
|
|
ui.display.clear()
|
|
ui.display.backlight(255)
|
|
|
|
image = res.load('./res/sl_logo.toif')
|
|
ui.display.image(60, 0, image)
|
|
|
|
ui.display.text_center(120, 160, "SatoshiLabs firmware", 1, ui.WHITE, ui.BLACK)
|
|
ui.display.text_center(120, 183, "v0.1.1", 1, ui.GREY, ui.BLACK)
|
|
|
|
reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=DEFAULT_BUTTON, active_style=DEFAULT_BUTTON_ACTIVE)
|
|
reboot.render()
|
|
|
|
while True:
|
|
if hasattr(ui.display, 'refresh'): ui.display.refresh() |