1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-19 05:58:09 +00:00
trezor-firmware/src/main.py

24 lines
559 B
Python
Raw Normal View History

2016-04-28 21:48:27 +00:00
import trezor.main
2016-05-25 00:38:10 +00:00
from trezor import msg
2016-04-28 21:48:27 +00:00
# Load all applications
from apps import playground
from apps import homescreen
from apps import management
from apps import wallet
2016-04-28 21:48:27 +00:00
# Initialize all applications
playground.boot()
homescreen.boot()
management.boot()
wallet.boot()
2016-04-28 21:48:27 +00:00
2016-05-25 00:38:10 +00:00
# just a demo to show how to register USB ifaces
msg.setup([(1, 0xF53C), (2, 0xF1D0)])
2016-05-25 00:38:10 +00:00
2016-04-28 21:48:27 +00:00
# Load default homescreen
from apps.homescreen.layout_homescreen import layout_homescreen
# Run main even loop and specify, which screen is default
trezor.main.run(main_layout=layout_homescreen)