Open yassinagx opened 9 years ago
I have a Raspberry Pi 2 B. Any Idea, why the lib is not working? Maybe related to the DMA addresses?
I don't have one to test on, but I understand a few of the pin assignments were changed.
Might mean a #DEFINE has to be changed... or it might just mean you have to plug it into a different pin.
If someone with an RP2 can figure that out and send me a push, and if that doesn't break the code for RP1 users, I will merge it.
I switched to a Raspberry Pi B (also 4usb and hdmi) Strangely, the demo runs there. The problem: it does not light like intended. The number of Led work correct, but the color doesn't. Will have to work on it next week.
What's happening with the colors?
Well, the color changes randomly. In fact, I also tried an Arduino Ethernet and an Arduino Pro mini. All devices make the right number of Leds glow, but none with the defined color. I have tested the neopixel lib, the fastled lib and a few others. It's all the same. Always random color, although my code defines only one. I switched the input mode from RGB to GRB but no success either. Pretty frustrating.
If you tried two different libraries and the LEDs aren't the right color, maybe they aren't WS2811/12 or perhaps the first pixel was damaged somehow. Make sure you have a sufficient capacitor (1000uF, 6.3 volts or greater) across the power leads, and that you're using a resistor (100-220 ohms is good, Adafruit recommends 300-500 ohms) on the data line as close to the pixel as possible. The resistor will prevent the first pixel from getting slammed by the control signal, which these drivers are susceptible to.
I'm still waiting on someone with a RasPi 2 to try the code using different pins. I only have a Raspberry Pi 1 so I'm not able to test.
Hi 626Pilot, I have an OrangePi Lite and compiled the program on it. The program runs but I have no signal on pins. I want to know if I have to chage something to make it run. In that case, where is the output pin defined?. Thanks
The output pin is GPIO18. See ws2812-RPi.c.
I use this awesome library regularly and I wanted to thank you @626Pilot.
But recently I switched to RaspberryPi 2 and it is not working. Are there plans to ensure compatibility with RaspberryPi 2 ?
Thank you.