using hsl

This commit is contained in:
Clément Le Bihan
2021-12-10 15:54:24 +01:00
parent 21bf914ebf
commit 08719f8f55

View File

@@ -3,9 +3,9 @@ from chroma_case.Note import Note
import asyncio
import sys
#import board, neopixel
import board, neopixel
#pixels = neopixel.NeoPixel(board.D18, 20, brightness=0.1)
pixels = neopixel.NeoPixel(board.D18, 20, brightness=0.1)
notePixels = { 'si': [0, 1],
'la#': [2, 3],
@@ -41,10 +41,6 @@ def hsl_to_rgb(hue, sat, light):
b = hue_to_rgb(t1, t2, hue - 2) * 255
return (round(r), round(g), round(b))
print(hsl_to_rgb())
pixels = {}
async def to_chroma_case(data):
global pixels