mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
23 lines
298 B
Python
23 lines
298 B
Python
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')
|