probonopd / ESP8266HueEmulator

Emulate a Philips Hue bridge running on an ESP8266 using the Arduino IDE.
MIT License
411 stars 93 forks source link

Colors are wrong #8

Closed probonopd closed 8 years ago

probonopd commented 9 years ago

Hue clients send color information not as RGB (which would be the easiest) but, as one of multiple options, as hue, sat, briwith hue (expressed in ~deg*182.04), bri between 0-254 (0 is not off!), and sat between 0-254. Conversions are required to drive NeoPixels which only understand RGB. Currently these conversions are not correct.

Need to use HSB. Makuna has started to implement HSBColor object already. Looking forward to using it.

probonopd commented 8 years ago

Now using Hsb