Updated to animate_pulse API

This commit is contained in:
slush0 2016-04-28 23:57:55 +02:00 committed by Pavol Rusnak
parent ca991fdde6
commit 338be18601
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ def layout_tap_to_confirm(address, amount, currency):
ui.display.text(10, 160, address[18:], ui.MONO, ui.BLACK, ui.WHITE)
f = open('apps/playground/tap_64.toig', 'r')
_background = ui.rgbcolor(255, 255, 255)
_background = ui.WHITE
def func(foreground):
ui.display.text(68, 212, 'TAP TO CONFIRM', 2, foreground, _background)
@ -26,7 +26,7 @@ def layout_tap_to_confirm(address, amount, currency):
f.seek(0)
ui.display.icon(3, 170, f.read(), _background, foreground)
yield from ui.animate_pulse(func) # , DELAY=10000)
yield from ui.animate_pulse(func, ui.BLACK, ui.GREY, speed=200000)
@unimport_func
def zprava():