1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-19 14:08:11 +00:00

remove main_stick and company

This commit is contained in:
Pavol Rusnak 2016-06-13 01:23:53 +02:00
parent 771372adb2
commit d3d21bdbbd
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
5 changed files with 0 additions and 51 deletions

View File

@ -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

View File

@ -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")

View File

@ -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

View File

@ -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)