You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/src/main.py

27 lines
643 B

import trezor.main
from trezor import msg
# Load all applications
from apps import playground
from apps import homescreen
from apps import management
from apps import wallet
# Initialize all applications
playground.boot()
homescreen.boot()
management.boot()
wallet.boot()
# Change backlight to white for better visibility
trezor.ui.display.backlight(255)
# Just a demo to show how to register USB ifaces
msg.setup([(1, 0xF53C), (2, 0xF1D0)])
# 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)