mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
ui: proper size for loader
This commit is contained in:
parent
ad6c274e07
commit
d9546d45b9
BIN
assets/trezor-80s.png
Normal file
BIN
assets/trezor-80s.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 96 KiB |
@ -28,10 +28,10 @@ class Loader():
|
|||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
self.start_ticks_ms = utime.ticks_ms()
|
self.start_ticks_ms = utime.ticks_ms()
|
||||||
ui.display.bar(0, 48, 240, 240 - 96, ui.BLACK)
|
ui.display.bar(0, 32, 240, 240 - 80, ui.BLACK)
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
ui.display.bar(0, 48, 240, 240 - 96, ui.BLACK)
|
ui.display.bar(0, 32, 240, 240 - 80, ui.BLACK)
|
||||||
ticks_diff = utime.ticks_ms() - self.start_ticks_ms
|
ticks_diff = utime.ticks_ms() - self.start_ticks_ms
|
||||||
self.start_ticks_ms = None
|
self.start_ticks_ms = None
|
||||||
return ticks_diff >= LOADER_MSEC
|
return ticks_diff >= LOADER_MSEC
|
||||||
|
Loading…
Reference in New Issue
Block a user