From 39609964da671eaf48db43d26c29012da124e4be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Fri, 10 Dec 2021 15:10:58 +0100 Subject: [PATCH] adding test --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index aabaf0b..8735595 100644 --- a/main.py +++ b/main.py @@ -26,6 +26,7 @@ async def to_chroma_case(data): colored_pixels = notePixels[data["key"].lower()] for pixelId in colored_pixels: pixels[pixelId] = (0, 0, 100) + await asyncio.sleep(data['duration'] / 1000) for pixelId in colored_pixels: pixels[pixelId] = data["color"] await asyncio.sleep(data['duration'] / 1000)