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/core/src1/main.py

23 lines
298 B

import usb
usb.bus.open()
import trezorio as io
from trezorui import Display
d = Display()
d.clear()
d.backlight(255)
i = 0
while True:
d.print('Loop %d\n' % i)
i += 1
r = [0, 0]
if io.poll([io.TOUCH], r, 1000000):
print('TOUCH', r)
else:
print('NOTOUCH')