Skip to content
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

Two WS2812 matrices (NeoPixel ring and matrix) #289

Open
maeb0r0wski opened this issue Jun 30, 2023 · 1 comment
Open

Two WS2812 matrices (NeoPixel ring and matrix) #289

maeb0r0wski opened this issue Jun 30, 2023 · 1 comment

Comments

@maeb0r0wski
Copy link

Hello! Thank you very much for creating and supporting the luma libraries! Can you please help me with this question? Сan I connect two ws2812 led matrices to different pwm pins of Raspberry Pi 4b and control them separately? I tried to change the library a bit to be able to specify the pin and channel to use when initializing the matrix, but it didn't help: only one matrix lights up, and it outputs the image sent to the second one. Can you tell me, is it possible to do this at all?

@maeb0r0wski maeb0r0wski changed the title Two WS2812 matrices Two WS2812 matrices (NeoPixel ring and matrix) Jun 30, 2023
@maeb0r0wski
Copy link
Author

Updated: I am able to run the program with both NeoPixel working properly, but only once. In the program I create two ws2812 objects (matrix and ring) on two different pins and two different channels. The first time I run the program, everything works fine. However, after finishing the program and starting it again - the first matrix starts to show the data I send to the second one (ring). Rebooting the Raspberry Pi again allows me to enjoy a properly working program once. As I understand it, there is no memory/pin clearing(?) after the program ends.
Sorry, I don't have a deep enough knowledge of the Raspberry Pi. Any help would be appreciated, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant