-
Notifications
You must be signed in to change notification settings - Fork 626
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 to get the RGB value of a LED using getPixelColor() URGET :( #247
Comments
Did you set any colours beforehand ? |
Yeah, all my strip to white (10 LEDS) RGB(255,255,255) |
Could you post the code you're using to set the pixel colours? I've run quick test with the latest library code, and I can't seem to replicate this. |
I just saw #245 - if you are expecting You must either save your state externally, or set your script up to run continuously. Note: It's not generally a good idea to write pixel state and expect the hardware to maintain the colour you have set. It's easy for electrical interference to be interpreted by the LEDs as signal, and this may result in random, unexpected changes. You should continuously refresh the pixels with the desired state. |
Since there has been no input on this for a few months, I'm closing it for housekeeping. Feel free to re-open if you have further questions or comments. |
Hi,
Ive been trying to get the RGB value of a specific LED light using the function getPixelColor().But when I try to print the function value, the only thing a I get is 0. Any help with this. Im using this simple code:
for i in range(strip.numPixels()):
value=strip.getPixelColor(i)
print(value)
The text was updated successfully, but these errors were encountered: