-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
How do you invert the logic? #51
Comments
I am driving my LEDs with a PMOS transistor, so they are active low now. Does this tool support this inversion? What I can do to invert the whole output logic? |
Yes you can set it in the setup command see the invert parameter after led type.
example: setup 1,10,0,1 If it doesn't work let me know then there is a bug... |
Yeah, I made new hardware (active low) that was not with me at that time. It is different than my original setup which was active high. I was trying to use it for the first time remotely through a webcam. Which is far from the ideal. I was using the code exactly as you said before. And nothing was working. My setup is this
Now I have the board with me. Then I will test and let you know if I found any issue with the software. Ah, by the way, my LEDs are these WS2812B |
So, this is my first test. (1) My routine to turn all of them on white. Nothing happens.
Executing it with debug flag enabled sudo ./ws2812svr -d -f patterns/hb_white.txt
Opening patterns/hb_white.txt.Initialize channel 0,8,3,0,255,18
Init ws2811 800000,5
fill 0,16777215,0,8,0
Changing brightness 0, 255, 0, 8
Render (null) (2) My routine to turn them off. Is turning the 1st one green.
Executing it with debug flag enabled sudo ./ws2812svr -d -f patterns/hb_off.txt
Opening patterns/hb_off.txt.Initialize channel 0,8,3,1,255,18
Init ws2811 800000,5
fill 0,0,0,8,0
Render (null) |
Ok, so I was testing jgarff/rpi_ws281x repo, and it didn't work too. After I bypassed my level-shifter/inverter using the active high code it worked. So, my hardware is good and working. I found this issue, that is maybe related, but it is kind of hard to understand what he is doing. No one has answered him anyway jgarff/rpi_ws281x#337 |
Yeah, that pull-down in front of the Q1 is not good. |
Does invert the logic work? I could not see any example here.
The text was updated successfully, but these errors were encountered: