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 .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():
|
||||||
|
Loading…
Reference in New Issue
Block a user