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:
parent
c66dfee6b9
commit
e13d4ac581
@ -3,6 +3,7 @@ import uheapq
|
||||
|
||||
from .utils import type_gen
|
||||
from . import msg
|
||||
from . import ui
|
||||
|
||||
if __debug__:
|
||||
import logging
|
||||
@ -46,8 +47,10 @@ def wait(delay):
|
||||
|
||||
m = msg.select(delay)
|
||||
if m:
|
||||
print('msg:', m)
|
||||
utime.sleep_us(10000)
|
||||
# print('msg:', m)
|
||||
# utime.sleep_us(10000)
|
||||
if m[0] == 2:
|
||||
ui.display.bar(m[1], m[2], 2, 2, ui.BLACK)
|
||||
return m
|
||||
|
||||
def run_forever():
|
||||
|
Loading…
Reference in New Issue
Block a user