Slower backlight animation
This commit is contained in:
parent
ba5aea519d
commit
80014f24ff
|
@ -83,7 +83,7 @@ async def alert(count: int=3):
|
|||
display.backlight(current)
|
||||
|
||||
|
||||
async def backlight_slide(val: int, delay: int=1000, step: int=1):
|
||||
async def backlight_slide(val: int, delay: int=5000, step: int=1):
|
||||
sleep = loop.sleep(delay)
|
||||
current = display.backlight()
|
||||
for i in range(current, val, -step if current > val else step):
|
||||
|
|
Loading…
Reference in New Issue