Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

light dimmed? #27

Closed
lauer opened this issue Jun 16, 2021 · 12 comments
Closed

light dimmed? #27

lauer opened this issue Jun 16, 2021 · 12 comments

Comments

@lauer
Copy link
Contributor

lauer commented Jun 16, 2021

When using this package in my electronjs project, the light is very dimm.

When using this python script, the light is very bright.
https://github.com/JnyJny/busylight

What can be the reason for this?

I have enabled debug and this is the writing buffer

"Writing buffer: 0,16,0,0,6,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,6,147"

I am using e.g. bl.light('green')

@porsager
Copy link
Owner

Are you perhaps using 0 - 100 values instead of 0 - 255?

@lauer
Copy link
Contributor Author

lauer commented Jun 16, 2021

It doesn't really matter if I sent rgb(0,255,0) greenor #0F0 - the color is still not as bright

@porsager
Copy link
Owner

Try run with the option degamma: false

@lauer
Copy link
Contributor Author

lauer commented Jun 16, 2021

Also tried

@lauer
Copy link
Contributor Author

lauer commented Jun 17, 2021

Ahh, sorry. It is only 'green' which causes low brightness.

rgb(0,255,0) and #0F0 sent the full brightness.

See the diferrence here:

[ 'rgb(0,255,0)', 'light' ]
Writing buffer: 0,16,0,0,31,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,4,146
[ '#0F0', 'light' ]
Writing buffer: 0,16,0,0,31,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,4,171
[ 'green', 'light' ]
Writing buffer: 0,16,0,0,6,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,4,171

@lauer
Copy link
Contributor Author

lauer commented Dec 14, 2021

so the problem is actually that it newer check for degamma is true or false. It always apply the function.

In my case, light is way better when degamma is not applied.

@lauer
Copy link
Contributor Author

lauer commented Dec 14, 2021

See this commit lauer@1eef7a7

Since you didn't have time to apply my other pull request, I haven't created one for this, but will just use my own master in my app.

@porsager
Copy link
Owner

Hi @lauer .. sorry, I've been extremely busy at work, so yeah, good thing you can always fork, but sorry about the radio silence.

If you make a pull request with a fix for this as well, I'll get both merged and do an npm release today.

@porsager
Copy link
Owner

I'd also be happy to add you as a maintainer for the repo if you'd like?

@lauer
Copy link
Contributor Author

lauer commented Dec 14, 2021

Same here, but one of my projects is to get this busylight to work better :)

I need to create separate branches for each commit, so it will take some time. I might look at it this week.

@porsager
Copy link
Owner

porsager commented Mar 23, 2022

Hi @lauer .. Once again.. sorry I haven't been able to prioritise this.. Merged your PR and if you'll PR your degamma things I'll get them merged and do a new release for npm as well.

lauer pushed a commit to lauer/busylight that referenced this issue Mar 24, 2022
porsager pushed a commit that referenced this issue Mar 27, 2022
Co-authored-by: Jesper Grann Laursen <jgl@ipvision.dk>
@porsager
Copy link
Owner

Thanks a lot @lauer ! I've released a new version with the updates on npm now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants