Post:
Hello everyone,
I’m currently working on a project with a Banana Pi CM4 and am trying to control WS2812B LEDs, but I’ve run into some issues and could use some help or suggestions.
What I’ve Tried:
- WiringPi: I followed the instructions on the official Banana Pi page for WiringPi:
- I successfully built and installed WiringPi.
- I can use the GPIO pins for basic tasks like output and PWM with GPIO 26, but I’m struggling to control the WS2812B LEDs.
- According to the documentation, WiringPi only supports setting the GPIO pins to output, input, or PWM, but I couldn’t find clear instructions on using it for controlling the WS2812B specifically.
- RPi.GPIO: I also tried using the RPi.GPIO library, which I installed by following the guide.
- After installation, I tried to use it for controlling the WS2812B LEDs but encountered the same issue: compatibility problems with the board, and I couldn’t get it to work.
- WiringPi-Python: I installed WiringPi-Python following the provided steps, but I still couldn’t get WS2812B support, and the LEDs did not respond as expected.
- rpi-ws281x:
I attempted to use the
rpi-ws281x
library, which is commonly used for WS2812B control, but I received an error stating that the board is not compatible with this library. - Adafruit NeoPixel Library: Lastly, I tried using the Adafruit NeoPixel library, but it gave a similar message indicating that the Banana Pi CM4 isn’t supported.
What I’m Looking For:
- Has anyone successfully controlled WS2812B LEDs with the Banana Pi CM4?
- Are there any specific configurations or workarounds I need to apply to make these libraries work, or should I try a completely different approach?
- If anyone has used an alternative library or method, could you share how you set it up?
Any guidance or suggestions would be greatly appreciated! Thanks in advance!