From d3d21bdbbd22fcc6d7f760f8922a6b6ce0b891ac Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 13 Jun 2016 01:23:53 +0200 Subject: [PATCH] remove main_stick and company --- emu_stick.sh | 8 ------- src/apps/playground_stick/__init__.py | 15 ------------- .../playground_stick/layout_homescreen.py | 20 ------------------ .../playground_stick/res/fingerprint.toig | Bin 1973 -> 0 bytes src/main_stick.py | 8 ------- 5 files changed, 51 deletions(-) delete mode 100755 emu_stick.sh delete mode 100644 src/apps/playground_stick/__init__.py delete mode 100644 src/apps/playground_stick/layout_homescreen.py delete mode 100644 src/apps/playground_stick/res/fingerprint.toig delete mode 100644 src/main_stick.py diff --git a/emu_stick.sh b/emu_stick.sh deleted file mode 100755 index 04cd8056..00000000 --- a/emu_stick.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -cd `dirname $0`/src -if [ "$1" == -d ]; then - shift - gdb --args ../vendor/micropython/unix/micropython $* -O0 -X heapsize=100000 main_stick.py -else - ../vendor/micropython/unix/micropython $* -O0 -X heapsize=100000 main_stick.py -fi diff --git a/src/apps/playground_stick/__init__.py b/src/apps/playground_stick/__init__.py deleted file mode 100644 index 13f857a3..00000000 --- a/src/apps/playground_stick/__init__.py +++ /dev/null @@ -1,15 +0,0 @@ -# Every application is supposed to have two entry points: -# -# boot() is called during device boot time and it should prepare -# all global things necessary to run. -# -# dispatch() is called once event subscribed in boot() is received. - -def dispatch(): - # Callback for HID messages - print("Dispatch homescreen") - -def boot(): - # Initilize app on boot time. - # This should hookup HID message types dispatcher() wants to receive. - print("Stickova appka") diff --git a/src/apps/playground_stick/layout_homescreen.py b/src/apps/playground_stick/layout_homescreen.py deleted file mode 100644 index 4e0d8cd4..00000000 --- a/src/apps/playground_stick/layout_homescreen.py +++ /dev/null @@ -1,20 +0,0 @@ -from trezor import ui -from trezor import loop -from trezor import res - -c = ui.rgbcolor(0x20, 0x98, 0xD1) - -def layout_homescreen(): - - ui.display.bar(0, 0, 240, 48 * 4, ui.BLACK) - ui.display.bar(0, 48 * 4, 240, 48, c, ui.BLACK) - ui.display.text_center(120, 240 - 18, 'Hold to confirm', ui.BOLD, ui.WHITE, c) - p = 0 - - def func(foreground): - ui.display.loader(p, c, 0, res.load('apps/playground_stick/res/fingerprint.toig'), foreground) - p = (p + 10) % 1000 - - animation = ui.animate_pulse(func, ui.WHITE, ui.GREY, speed=400000) - - yield from animation diff --git a/src/apps/playground_stick/res/fingerprint.toig b/src/apps/playground_stick/res/fingerprint.toig deleted file mode 100644 index 4ab4a0b5a9cc2bd4696230b208284d1a6676b301..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1973 zcmV;m2TJ%Ig|;vQMPZ z2EB$t@~tZqcDbWN4;@l_(!2uhJ-LFz;S=M_er~{raCqOEm>N;|4oo8Gw0@oAoyW$l;Cd2xlxg5b}QI_5+f{1!~S{1atu ziap#cYdy@v!>jV6_amHKQnUPY=ZDxW-pqt;*ZUn@dmdiUR`9Zdd`Kf`lrBV7D%^eW*ozEiokz~o_d1FW~Ov>%cL8eq&`JHN| z>gdzi159qo;OsYcK_#@;6Lj)$Xb&XHnzgQ!mn4CPeif8=xG>ViVn{Efq~a{**ji20 zJk`ay*DyfoXTQni&@419*F7 zDV$pef%LTN>qgqfI1}sYN)9h`)x%0d`Wr!t2c05Du(p1nC9W}yvM>Ao=r2TX1Lifh zIFz^RI-z1-uTNsuQY=ZuU`5szbz_B7wX*t&1?gXP##$-$Vl%iC@4DC4d>0#Qzij#5 zpBhZcvV`7mM}wNz=cc@kEpUT^UZ+y4>s$$9W_{r1YYe1sOHhrgT;)=0N$6}gxY|m?g7F1-j*{)(w(2blVwNUpdJvp>Fw3ZNVI_!6E+t?a3O3KY{eexw zq(XT~AGCf~Lj0$6gX>M!JB9zwA{$|;Vb!YzVDcgi!s~j=+_5&q#UzZ()~;uPlN6$D zDYuN&+p>)(LwN-LNSwhFg3np3%FCbLRxEs$Gt5|fXPD7xMbuP+YACODEt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