From e13d4ac58127948875a5b51dcd35e80f19c0c390 Mon Sep 17 00:00:00 2001 From: slush0 Date: Fri, 29 Apr 2016 17:58:57 +0200 Subject: [PATCH] Print mouse move to display --- src/trezor/loop.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/trezor/loop.py b/src/trezor/loop.py index ff779871ae..bacdac4840 100644 --- a/src/trezor/loop.py +++ b/src/trezor/loop.py @@ -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():