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 4ab4a0b5..00000000 Binary files a/src/apps/playground_stick/res/fingerprint.toig and /dev/null differ diff --git a/src/main_stick.py b/src/main_stick.py deleted file mode 100644 index 0df8a81a..00000000 --- a/src/main_stick.py +++ /dev/null @@ -1,8 +0,0 @@ -import trezor.main - -from apps import playground_stick -playground_stick.boot() - -from apps.playground_stick import layout_homescreen -# Run main even loop and specify, which screen is default -trezor.main.run(main_layout=layout_homescreen.layout_homescreen)