mirror of
https://github.com/c0de-archive/pixoPython.git
synced 2024-12-21 21:12:39 +00:00
Use dissolve transition
This commit is contained in:
parent
5e7d2774f0
commit
4eef181fa9
@ -70,9 +70,9 @@ if not STA_IF.isconnected():
|
||||
# If anything is connected, and it's been at least 30 seconds, clear the board
|
||||
def timeout():
|
||||
if is_connected(STA_IF) or is_connected(AP_IF) and time.time() - time_connected > 30:
|
||||
Pixo().clear()
|
||||
Pixo().transition_image_dissolve()
|
||||
tim.deinit()
|
||||
|
||||
# Check if the timeout is satisfied, every 30s
|
||||
tim = Timer(-1)
|
||||
tim.init(period=30000, mode=Timer.PERIODIC, callback=lambda t:timeout())
|
||||
tim.init(period=30000, mode=Timer.PERIODIC, callback=lambda t:timeout())
|
||||
|
Loading…
Reference in New Issue
Block a user