From 009e87b6b65b18c6bd70d7acbd3becdc17420421 Mon Sep 17 00:00:00 2001 From: Tomas Krejci Date: Tue, 21 May 2024 01:45:44 +0200 Subject: [PATCH] rgb up --- rgb.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rgb.py b/rgb.py index 79d1fe8..c0353bc 100644 --- a/rgb.py +++ b/rgb.py @@ -39,12 +39,14 @@ async def off(): led_g.duty_u16(0) # 0 = off led_b.duty_u16(0) # 0 = off -async def main(): +async def test(): print("RGB demo") print("Press Ctrl-C to exit") + await uasyncio.sleep(1) print("RGB power:", rgb_pwr) print("RGB initializing...") await init() + await uasyncio.sleep(1) while True: print("RGB off") await set(0, 0, 0) @@ -62,7 +64,7 @@ async def main(): await set(1, 1, 1) await uasyncio.sleep(1) -asyncio.run(main()) +asyncio.run(test())