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
|
2016-05-25 12:27:22 +00:00
|
|
|
from apps import homescreen
|
2016-06-01 13:06:00 +00:00
|
|
|
from apps import management
|
2016-05-25 12:27:22 +00:00
|
|
|
from apps import wallet
|
2016-04-28 21:48:27 +00:00
|
|
|
|
|
|
|
# Initialize all applications
|
|
|
|
playground.boot()
|
2016-05-25 12:27:22 +00:00
|
|
|
homescreen.boot()
|
2016-06-01 13:06:00 +00:00
|
|
|
management.boot()
|
2016-05-25 12:27:22 +00:00
|
|
|
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
|
2016-06-01 13:06:00 +00:00
|
|
|
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)
|