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

Neopixel PWM pin change #199

Open
bouchardh opened this issue Aug 11, 2019 · 5 comments
Open

Neopixel PWM pin change #199

bouchardh opened this issue Aug 11, 2019 · 5 comments

Comments

@bouchardh
Copy link

Hi,

The PWM pin is hard coded to 18 in the library and it is already covered by an old Displayotron 3000 on my raspberry pi.

Would it be possible to make this pin user selectable (12 in my case) as it's the only hardware PWM pin that is not covered.

Thank you

@thijstriemstra
Copy link
Collaborator

The PWM pin is hard coded to 18

confirmed: https://github.com/rm-hull/luma.led_matrix/blob/master/luma/led_matrix/device.py#L227

@rm-hull
Copy link
Owner

rm-hull commented Aug 12, 2019

I think it can only be connected to certain pins.

In any regard, I'll have a look at making this configurable when I get back off holiday in a few weeks, unless any one else fancies submitting a PR in the meantime

@bouchardh
Copy link
Author

Agreed. From what I have found is there are only 4 pins thar can be used but saw conflicting information about pin selection.

All I can tell for now is that 18 (hard coded) and 12 (tested by myself by modifying your code) work. They were both in the lists I found and there should be 4 usable pins (Adafruit also lists 10 and 21).

I will have some time later this week to test it out.

@bouchardh
Copy link
Author

I was able to control the lights with pins 12, 18 and 21. I was able to start the code with pin 10 also but I only got all white out of it.

@robi772
Copy link

robi772 commented Sep 15, 2019

That pins are individualy usable? Can use it for 2 x 1024 LED?

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

No branches or pull requests

4 participants