2016-04-29 19:48:59 +00:00
|
|
|
import utime
|
|
|
|
|
2016-04-28 21:43:34 +00:00
|
|
|
from trezor import ui
|
|
|
|
from trezor import loop
|
|
|
|
from trezor import layout
|
2016-04-29 11:49:12 +00:00
|
|
|
from trezor import utils
|
2016-04-28 21:43:34 +00:00
|
|
|
|
|
|
|
def layout_homescreen():
|
|
|
|
print("Homescreen layout!")
|
|
|
|
|
2016-04-29 19:48:59 +00:00
|
|
|
# from apps import playground
|
|
|
|
# loop.call_at(utime.ticks_us() + 5 * 1000000, layout.change(playground.layout_tap_to_confirm('1BitkeyP2nDd5oa64x7AjvBbbwST54W5Zmx2', 110.126967, 'BTC')))
|
2016-04-28 21:43:34 +00:00
|
|
|
|
|
|
|
ui.display.bar(0, 0, 240, 240, ui.WHITE)
|
|
|
|
|
|
|
|
f = open('apps/homescreen/trezor.toig', 'r')
|
|
|
|
|
|
|
|
def func(foreground):
|
|
|
|
f.seek(0)
|
|
|
|
ui.display.icon(0, 0, f.read(), foreground, ui.BLACK)
|
|
|
|
|
2016-04-29 11:49:12 +00:00
|
|
|
yield from ui.animate_pulse(func, ui.WHITE, ui.GREY, speed=400000)
|