1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-01 11:01:00 +00:00
trezor-firmware/src/apps/homescreen/layout_homescreen.py

30 lines
723 B
Python
Raw Normal View History

2016-04-28 21:43:34 +00:00
from trezor import ui
from trezor import loop
2016-04-30 13:57:08 +00:00
2016-04-28 21:43:34 +00:00
def layout_homescreen():
print("Homescreen layout!")
2016-04-30 13:57:08 +00:00
# ui.display.bar(0, 0, 240, 240, ui.WHITE)
2016-04-28 21:43:34 +00:00
2016-04-30 13:57:08 +00:00
# f = open('apps/homescreen/trezor.toig', 'r')
2016-04-28 21:43:34 +00:00
2016-04-30 13:57:08 +00:00
# def func(foreground):
# f.seek(0)
# ui.display.icon(0, 0, f.read(), foreground, ui.BLACK)
2016-04-28 21:43:34 +00:00
2016-04-30 13:57:08 +00:00
# animation = ui.animate_pulse(func, ui.WHITE, ui.GREY, speed=400000)
2016-04-28 21:43:34 +00:00
2016-04-30 13:57:08 +00:00
timeout = loop.sleep(1000 * 1000)
2016-04-29 23:20:57 +00:00
2016-04-30 13:57:08 +00:00
yield loop.wait([timeout])
print('back to layout')
2016-04-29 23:20:57 +00:00
2016-04-30 13:57:08 +00:00
# try:
# print(animation.throw(StopIteration()))
# except:
# pass
2016-04-29 23:20:57 +00:00
2016-04-30 13:57:08 +00:00
# from apps import playground
# return playground.layout_tap_to_confirm('1BitkeyP2nDd5oa64x7AjvBbbwST54W5Zmx2', 110.126967, 'BTC')