porsager / busylight

node library for busylight
49 stars 17 forks source link

Adjust busylight brightness #14

Closed robimac04 closed 6 years ago

robimac04 commented 6 years ago

Hello,

is it possible to adjust the brightness via API? The light is very low when using green color, compared to the original software on Windows (see picture).

image 2017-12-11 08 14 56

porsager commented 6 years ago

Hi. That's definately a regression. I'll look into it now.

On 11 Dec 2017, at 08:18, robimac04 notifications@github.com wrote:

Hello,

is it possible to adjust the brightness via API? The light is very low when using green color, compared to the original software on Windows (see picture).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

porsager commented 6 years ago

Hmm.. Could you try to provide the code you use? I've only been able to get my hands on a regular busylight which worked fine, and per the spec there shouldn't be a difference between that and the kuando box.

robimac04 commented 6 years ago

It's the cloned repository in combination with a JS file to activate it. Content:

var busylight = require('/usr/local/testdrive/busylight/lib');
var bl = busylight.get();

bl.light('green');

The files in /usr/local/testdrive/busylight/lib are the same as in the repository.

porsager commented 6 years ago

Could you try to set degamma: false ?

robimac04 commented 6 years ago

Okay thanks, I will try that.

robimac04 commented 6 years ago

I've tried it, but it's still as dark as shown on the picture.

porsager commented 6 years ago

Hi @robimac04 ... sorry I never got back to you, but I just realized that the css color green isn't full green like rgb(0, 255, 0), but rather only half of green rgb(0, 255, 0).

I'm pretty sure if you do rgb(0, 255, 0) or #00FF00 you'll get the same brightness..

Sorry i didn't realize this from the start :P

robimac04 commented 6 years ago

No worries :-)

It works now, thank you very much for your support 👍

aftabjan commented 5 years ago

Hi @porsager, I have been facing the same issue of color brightness as you replied to @robimac04 and the solution worked for him to use RGB, but the same when I apply it doesn't work and I don't get a full bright color.