From 5cf292e41a3e58037f7aabf97ba636991ab2001d Mon Sep 17 00:00:00 2001 From: slush0 Date: Fri, 29 Apr 2016 13:49:12 +0200 Subject: [PATCH] Fixed animate_pulse api --- src/apps/homescreen/layout_homescreen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/homescreen/layout_homescreen.py b/src/apps/homescreen/layout_homescreen.py index b67b443d28..1c23436661 100644 --- a/src/apps/homescreen/layout_homescreen.py +++ b/src/apps/homescreen/layout_homescreen.py @@ -1,6 +1,7 @@ from trezor import ui from trezor import loop from trezor import layout +from trezor import utils def layout_homescreen(): print("Homescreen layout!") @@ -16,4 +17,4 @@ def layout_homescreen(): f.seek(0) ui.display.icon(0, 0, f.read(), foreground, ui.BLACK) - yield from ui.animate_pulse(func, SPEED=400000, BASE_COLOR=(0xff, 0xff, 0xff), MIN_COLOR=0xaa, MAX_COLOR=0xff) + yield from ui.animate_pulse(func, ui.WHITE, ui.GREY, speed=400000)