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

remove apps/seed example

This commit is contained in:
Jan Pochyla 2016-06-09 16:31:18 +02:00 committed by Pavol Rusnak
parent 9f0b27f597
commit 6c0970df9e
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 0 additions and 54 deletions

View File

@ -1,17 +0,0 @@
from trezor.dispatcher import register
from trezor.utils import unimport_func
@unimport_func
def dispatch_Initialize(mtype, mbuf):
from trezor.messages.Initialize import Initialize
message = Initialize.loads(mbuf)
from .layout_seed import layout_seed
return layout_seed(message)
def boot():
Initialize = 0
# register(Initialize, dispatch_Initialize)

View File

@ -1,37 +0,0 @@
from trezor import ui, dispatcher, loop, res, wire
from trezor.ui.swipe import Swipe
from trezor.utils import unimport_gen
def swipe_to_rotate():
while True:
degrees = yield from Swipe(absolute=True).wait()
ui.display.orientation(degrees)
def animate_logo():
def func(foreground):
ui.display.icon(105, 200, res.load('apps/seed/res/small-arrow.toig'), foreground, ui.BLACK)
yield from ui.animate_pulse(func, ui.WHITE, ui.BLACK, speed=190000)
@unimport_gen
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, 74, '1.', ui.BOLD, ui.LIGHT_GREEN, ui.BLACK)
ui.display.text(30, 74, 'auto', ui.BOLD, ui.WHITE, ui.BLACK)
ui.display.text(10, 104, '2.', ui.BOLD, ui.LIGHT_GREEN, ui.BLACK)
ui.display.text(30, 104, 'model', ui.BOLD, ui.WHITE, ui.BLACK)
ui.display.text(10, 134, '3.', ui.BOLD, ui.LIGHT_GREEN, ui.BLACK)
ui.display.text(30, 134, 'rifle', ui.BOLD, ui.WHITE, ui.BLACK)
ui.display.text(10, 164, '4.', ui.BOLD, ui.LIGHT_GREEN, ui.BLACK)
ui.display.text(30, 164, 'digital', ui.BOLD, ui.WHITE, ui.BLACK)
yield loop.Wait([dispatcher.dispatch(),
swipe_to_rotate(),
animate_logo()])

Binary file not shown.