1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-12 18:49:07 +00:00

added playground of scrollicon

This commit is contained in:
chren 2016-06-13 16:15:48 +02:00 committed by Pavol Rusnak
parent a768d32ff9
commit fed9309ffa
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,2 @@
def boot():
print("chrenova appka")

View File

@ -0,0 +1,19 @@
from trezor import ui
from trezor import loop
def layout_scrollicon():
def func_top(foreground):
ui.display.bar(102, 216, 36, 4, foreground)
def func_middle(foreground):
ui.display.bar(106, 223, 28, 4, foreground)
def func_bottom(foreground):
ui.display.bar(110, 230, 20, 4, foreground)
animation_top = ui.animate_pulse(func_top, ui.GREY, ui.BLACK, speed=300000, delay=0)
animation_middle = ui.animate_pulse(func_middle, ui.GREY, ui.BLACK, speed=300000, delay=100000)
animation_bottom = ui.animate_pulse(func_bottom, ui.GREY, ui.BLACK, speed=300000, delay=200000)
yield loop.Wait([animation_top, animation_middle, animation_bottom])

View File

@ -3,12 +3,14 @@ from trezor import msg
# Load all applications
from apps import playground
from apps import playground_chren
from apps import homescreen
from apps import management
from apps import wallet
# Initialize all applications
playground.boot()
playground_chren.boot()
homescreen.boot()
management.boot()
wallet.boot()