1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

change backlight to white and seed mockup

This commit is contained in:
chren 2016-06-08 14:48:04 +02:00 committed by Pavol Rusnak
parent 5b6ab9ca96
commit bed2d4d50e
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 17 additions and 2 deletions

View File

@ -20,6 +20,18 @@ def layout_seed(initialize_msg=None):
# header title
ui.display.text(10, 30, 'Write down your seed', ui.BOLD, ui.LIGHT_GREEN, ui.BLACK)
ui.display.text(10, 60, '1.', ui.BOLD, ui.LIGHT_GREEN, ui.BLACK)
ui.display.text(20, 60, 'auto', ui.BOLD, ui.WHITE, ui.BLACK)
ui.display.text(10, 90, '2.', ui.BOLD, ui.LIGHT_GREEN, ui.BLACK)
ui.display.text(20, 90, 'model', ui.BOLD, ui.WHITE, ui.BLACK)
ui.display.text(10, 120, '3.', ui.BOLD, ui.LIGHT_GREEN, ui.BLACK)
ui.display.text(20, 120, 'rifle', ui.BOLD, ui.WHITE, ui.BLACK)
ui.display.text(10, 150, '4.', ui.BOLD, ui.LIGHT_GREEN, ui.BLACK)
ui.display.text(20, 150, 'digital', ui.BOLD, ui.WHITE, ui.BLACK)
yield loop.Wait([dispatcher.dispatch(),
swipe_to_rotate(),
animate_logo()])

View File

@ -15,11 +15,14 @@ management.boot()
wallet.boot()
seed.boot()
#change backlight to white for better visibility
trezor.ui.display.backlight(255)
# just a demo to show how to register USB ifaces
msg.setup([(1, 0xF53C), (2, 0xF1D0)])
# Load default homescreen
from apps.homescreen.layout_homescreen import layout_homescreen
from apps.seed.layout_seed import layout_seed
# Run main even loop and specify, which screen is default
trezor.main.run(main_layout=layout_homescreen)
trezor.main.run(main_layout=layout_seed)