1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00

Print mouse move to display

This commit is contained in:
slush0 2016-04-29 17:58:57 +02:00 committed by Pavol Rusnak
parent c66dfee6b9
commit e13d4ac581
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -3,6 +3,7 @@ import uheapq
from .utils import type_gen from .utils import type_gen
from . import msg from . import msg
from . import ui
if __debug__: if __debug__:
import logging import logging
@ -46,8 +47,10 @@ def wait(delay):
m = msg.select(delay) m = msg.select(delay)
if m: if m:
print('msg:', m) # print('msg:', m)
utime.sleep_us(10000) # utime.sleep_us(10000)
if m[0] == 2:
ui.display.bar(m[1], m[2], 2, 2, ui.BLACK)
return m return m
def run_forever(): def run_forever():