-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Whole strip go OFF when same RGB values in last LED #113
Comments
Can't reproduce. What hardware is this running on? |
Arduino Uno... Also was trying FastLED library and the same problem, i think its maybe hardware problem, i have two led strips both have 2x LED. Wating for 1200x LED, so after arrive, i will let you know, if problem consist. Also sending whole code iam using (sorry for different language comments, it was requirement from my friend). Code will allow you to control through serial. Code for Adafruit_NeoPixel.h library Code for FastLED library |
Try using unsigned int instead. I had this issue with a project I was On Sat, Nov 5, 2016 at 3:36 PM, Tmthetom [email protected] wrote:
|
Hello, thank you, so i tried data types from Adafruit_NeoPixel.h It did not helped, but thank you for advice ;) |
Also, that two peaces iam using for testing are one of the first NeoPixels from Adafruit ever maded, Maybe it should be issue that was in first samples. I will try some research with Logic analyzer. |
By "first NeoPixel," do you mean the v1 Flora pixels, a small PCB with LED on one side and chip on the back? If so, use NEO_KHZ400 in the constructor. |
I was told, that its one of the first products. To be sure, i tried 400KHZ, but it did not helped. |
I get the same effect here, when R=G, the ws2812b turns off. |
Hello, i have problem with WS2812 strip.
When i set same RGB values (like 255,255,255, or 121,121,121), in last LED in strip, whole strip is OFF. I can change any color i want, but until i wont change last LED in strip into state, when RGB values are not same, problem remains. So whole strip can have random colors, everything is working, but if last LED is 141,141,141 whole strip is OFF, i change last color to 141,140,141, eveything is working. I was trying this even with more peaces and problem is still the same.
Simple example of code:
#include <Adafruit_NeoPixel.h>
#define PIN 6
Adafruit_NeoPixel strip = Adafruit_NeoPixel(2, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
strip.show(); // Initialize all pixels to 'off'
}
void loop(){
... wating until data arrives from serial .....
// This is OK
changeColor(0, 12, 18, 15);
changeColor(1, 25, 25, 24);
// This is OK
changeColor(0, 10, 10, 10); // Here can be even same color
changeColor(1, 25, 25, 24);
// This is NOT OK
changeColor(0, 12, 18, 15);
changeColor(1, 25, 25, 25); // When same color here, not working.
... Other code
}
void changeColor(int n, int r, int g, int b){
strip.setPixelColor(n, r, g, b);
strip.show();
}
The text was updated successfully, but these errors were encountered: