From 6c0970df9e6c28ff961931720b242bf5146245e7 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Thu, 9 Jun 2016 16:31:18 +0200 Subject: [PATCH] remove apps/seed example --- src/apps/seed/__init__.py | 17 ------------- src/apps/seed/layout_seed.py | 37 ----------------------------- src/apps/seed/res/small-arrow.toig | Bin 195 -> 0 bytes 3 files changed, 54 deletions(-) delete mode 100644 src/apps/seed/__init__.py delete mode 100644 src/apps/seed/layout_seed.py delete mode 100644 src/apps/seed/res/small-arrow.toig 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 7ac29924c539e03d334c259596af58cca2e46678..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 195 zcmV;!06hOxPf2GU02u(c00010(7_49KoEuD+0D&dHsDQ#wE#iz9&4}+JFx=WP%8-D z1u2|r)h9TKzt@_}eATbA3(4&?cQ9COrkRio_AZP26{c*1vl zOkUYlZL|afErm0nrO=g2T$bJD@~pTK^pEL~Utqo7s3NXk#b?EtP@YkOeP*U8dafo_