These are chat archives for Makuna/NeoPixelBus

25th
Jan 2016
Callum Bryant
@Nixes
Jan 25 2016 01:45
So what kind of real world performance do you get with this library? Is the update rate over 60hz?
Callum Bryant
@Nixes
Jan 25 2016 01:56
Without using animations, on an esp8266.
Michael Miller
@Makuna
Jan 25 2016 03:07
@AdySan An HSLCOLOR.H can be passed to the setcolor, it will be autoconverted into the Rgbcolor.h for you.
Sorry, autocomplete converted Hslcolor to haslcolor.h??
@Nixes the update rate depends on how many pixels you have on the loop, no matter who's library you use. 300 pixels takes 9ms to just represent on the wire.
Michael Miller
@Makuna
Jan 25 2016 03:16
@Nixes if you are asking how fast is the esp8266, with the Dma driven branch it can do the sending in hardware, so it mostly converting the data and running animations. If you are asking about WiFi throughput, I have no idea as I have never just streamed the pixel data as I do the animations on chip.
Aditya Tannu
@AdySan
Jan 25 2016 03:17
Sorry, I still dont get it HslColor(RgbColor color); needs RGB as input
I dont want to convert RGB to HSL, I want to setpixelcolor using HSL as input
Michael Miller
@Makuna
Jan 25 2016 03:18
@AdySan hsl has to be converted into rgb, as the neopixel only knows rgb. So, just call Set pixel Colorado with your Hslcolor object and don't worry.
Stupid autocorrect again, using Android tablet to enter this. SETpixelColor, not set pixel Colorado 😃
Aditya Tannu
@AdySan
Jan 25 2016 03:19
I see, will give it a try right now.
no worries, thanks for the help!
just made this simple demo, will convert it to HSL if it works https://www.youtube.com/watch?v=GSVDY9_Wci0
Michael Miller
@Makuna
Jan 25 2016 03:21
Look closely at Hslcolor object, and how it represents the data, it's different than some representations.
Like what is the value ranges for H, S, L, versus what you may be getting from over the wire.
Aditya Tannu
@AdySan
Jan 25 2016 03:23
Hue I assume 0-360, Saturation and Brightness 0-1 or 0-100
will tkae a look
Michael Miller
@Makuna
Jan 25 2016 03:23
Don't assume 😊
Aditya Tannu
@AdySan
Jan 25 2016 03:24
oh yeah, Construct a HslColor using H, S, L values (0.0 - 1.0)
nah, for int it is
    // Construct a HslColor using H, S, L values (0 - 255)
    // generally, L should be limited to between (0-127)
Michael Miller
@Makuna
Jan 25 2016 03:26
There is way to switch to use floats. I thought this was the default now.
Aditya Tannu
@AdySan
Jan 25 2016 03:26
yean it's #define HSL_FLOAT
Aditya Tannu
@AdySan
Jan 25 2016 03:59
cool, this works strip.SetPixelColor(PixelNumber, testHSV);, i dont understand how yet, but anyway, thanks!
Aditya Tannu
@AdySan
Jan 25 2016 04:08
something is strange about L values, at 0.5 I get maximm brightness with the corresponding color values, but going to 1.0 basically makes everything white
so I guess I should stick to 0 - 0.5
Michael Miller
@Makuna
Jan 25 2016 04:16
Hsb is what you were expecting. It's luminance not brightness. But that's a good point to express in the docs.
Aditya Tannu
@AdySan
Jan 25 2016 04:23
Oh my bad, despite studying and liking image processing never paid attention to this detail.
Callum Bryant
@Nixes
Jan 25 2016 04:28
@Makuna Thanks for your help and this nice library :)
Michael Miller
@Makuna
Jan 25 2016 04:29
Then there is hsv, too many that are so similar make for confusing support.
Aditya Tannu
@AdySan
Jan 25 2016 04:33
I just assumed different names for the same thing, seems I assume a lot of things.