refactor: Use asyncio for non-blocking display animations
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
12
main.py
12
main.py
@@ -88,19 +88,19 @@ async def manage_display(disp):
|
||||
while True:
|
||||
await asyncio.sleep(2)
|
||||
|
||||
disp.scroll_text('WELCOME TO PROTOSPACE!', scroll_speed=2, easing='inout', pulse=True)
|
||||
await disp.scroll_text('WELCOME TO PROTOSPACE!', scroll_speed=2, easing='inout', pulse=True)
|
||||
disp.set_brightness(15)
|
||||
disp.marquee('PRESENTING...', scroll_speed=8, cycles=1)
|
||||
disp.marquee('THE BASH REGISTER', scroll_speed=2, cycles=1)
|
||||
await disp.marquee('PRESENTING...', scroll_speed=8, cycles=1)
|
||||
await disp.marquee('THE BASH REGISTER', scroll_speed=2, cycles=1)
|
||||
|
||||
disp.set_brightness(15)
|
||||
disp.chase(speed=8)
|
||||
await disp.chase(speed=8)
|
||||
|
||||
disp.write_text('SEND TO')
|
||||
disp.rainbow()
|
||||
await disp.rainbow()
|
||||
|
||||
disp.set_brightness(15)
|
||||
disp.marquee('PROTOSPACE.CA/SIGN', scroll_speed=2, cycles=3)
|
||||
await disp.marquee('PROTOSPACE.CA/SIGN', scroll_speed=2, cycles=3)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user