-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
UCS8903 & UCS8904 don't have name specific method #817
Comments
I'm trying to control an individual UCS8904B using NeoPixelBus without success. #include <NeoPixelBus.h>
const uint16_t PixelCount = 10;
const uint8_t PixelPin = 11;
NeoPixelBus<NeoRgbw64Feature, Neo800KbpsMethod> strip(PixelCount, PixelPin);
void setup() {
strip.Begin();
pinMode(13, OUTPUT);
}
void loop() {
Rgbw64Color cor(Rgbw64Color::Max, Rgbw64Color::Max, Rgbw64Color::Max, Rgbw64Color::Max);
for (int a=0; a<NUMPIXELS; a++) {
strip.SetPixelColor(a, cor);
}
strip.Show();
digitalWrite(13, HIGH);
delay(500);
Rgbw64Color cor2(0, 0, 0, 0);
for (int a=0; a<NUMPIXELS; a++) {
strip.SetPixelColor(a, cor2);
}
strip.Show();
digitalWrite(13, LOW);
delay(500);
} |
Try using "NeoWs2812xMethod" |
Thanks, I've tried and it didn't work |
Try the "NeoWs2805Method". These ARM chips are painful to support. Its bitbang model (no hardware support) and the uC speed variances can affect the output. I would have to put it on the scope and I don't have my Arm chips with me to check it out right now. |
In your compiler output, look for one of these... The LC will have MKL26Z64 |
Great. None of them worked. I'm sharing the data pin with an WS2812 strip and it is blinking correctly, even when using 16bit code. |
NeoRgbw64Feature is for any chip that has 16bits per element with R,G,B, and a W channel. This will not work with a WS2812 as it is only 8 bits per color element. You would have to change it to NeoRgbFeature for it to work with a WS2812 as they are only R, G, and B also. |
Everything is now solved. |
Is your feature request related to a problem? Please describe.
While the UCS890x chips do have specifically named features, they do not have specifically named methods.
Describe the solution you'd like
Methods should be aliased to either Ws2812x (most compatible) or another than has the nearest reset timing.
The text was updated successfully, but these errors were encountered: