mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-12 18:49:07 +00:00
remove main_stick and company
This commit is contained in:
parent
771372adb2
commit
d3d21bdbbd
@ -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
|
@ -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")
|
@ -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
|
Binary file not shown.
@ -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)
|
Loading…
Reference in New Issue
Block a user