rdagger / micropython-ssd1351

MicroPython SSD1351 OLED Display Driver
MIT License
58 stars 13 forks source link

HSV to RGB conversion #8

Closed StuMunsonMcGee closed 10 months ago

StuMunsonMcGee commented 11 months ago

Are the return values correct when s == 0? Should they be [int(255v)]3?

rdagger commented 11 months ago

I did not write the hsv_to_rgb() function. It is copied from the Python colorsys.py library:

https://github.com/python/cpython/blob/main/Lib/colorsys.py