adding test

This commit is contained in:
Clément Le Bihan
2021-12-10 15:10:21 +01:00
parent 34540f7b63
commit 8b8ca77d2c

View File

@@ -24,6 +24,8 @@ async def to_chroma_case(data):
global pixels
colored_pixels = notePixels[data["key"].lower()]
for pixelId in colored_pixels:
pixels[pixelId] = (0, 0, 100)
for pixelId in colored_pixels:
pixels[pixelId] = data["color"]
await asyncio.sleep(data['duration'] / 1000)