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

brightness issue #4

Open
faryar76 opened this issue Dec 8, 2022 · 3 comments
Open

brightness issue #4

faryar76 opened this issue Dec 8, 2022 · 3 comments

Comments

@faryar76
Copy link

faryar76 commented Dec 8, 2022

hi👋
rgb(1,1,1)
in python makes a very low brightness white
but in javascript output is very bright (90 is darker than 1 !)

in my case output is not compareable

any idea?

@haraldkubota
Copy link
Contributor

I thought I was the only one with this problem! Yeah, the brightness of everything is way off.

@haraldkubota
Copy link
Contributor

haraldkubota commented Apr 21, 2023

I tested other LEDs, and I think I know the problem: the bits sent to the WS2812 are mirrored:
When I send brightness values like this: 128, 64, 32, 16, 8, 4, 2, 1 then the brightness goes from very dim to quite bright.
0 and 255 and dark (off) and very bright..
I'm not (yet) sure how this can be fixed since I don't yet understand how the PIO exactly works...

@haraldkubota
Copy link
Contributor

I think I solved this problem. See my pull request.

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