mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
added playground of scrollicon
This commit is contained in:
parent
a768d32ff9
commit
fed9309ffa
2
src/apps/playground_chren/__init__.py
Normal file
2
src/apps/playground_chren/__init__.py
Normal file
@ -0,0 +1,2 @@
|
||||
def boot():
|
||||
print("chrenova appka")
|
19
src/apps/playground_chren/layout_scrollicon.py
Normal file
19
src/apps/playground_chren/layout_scrollicon.py
Normal 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])
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user