diff --git a/src/apps/seed/__init__.py b/src/apps/seed/__init__.py deleted file mode 100644 index 6d4fadc1c4..0000000000 --- a/src/apps/seed/__init__.py +++ /dev/null @@ -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) diff --git a/src/apps/seed/layout_seed.py b/src/apps/seed/layout_seed.py deleted file mode 100644 index 174cecca04..0000000000 --- a/src/apps/seed/layout_seed.py +++ /dev/null @@ -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()]) diff --git a/src/apps/seed/res/small-arrow.toig b/src/apps/seed/res/small-arrow.toig deleted file mode 100644 index 7ac29924c5..0000000000 Binary files a/src/apps/seed/res/small-arrow.toig and /dev/null differ