tvoverbeek / rpi-pcm-ws281x

Library for controlling neopixels using the Raspberry Pi PCM hardware instead of PWM
MIT License
5 stars 2 forks source link

How I can run the example original strandtest.py with this version of lib #2

Open logickphp opened 7 years ago

logickphp commented 7 years ago

Hi, I am trying to execute the original example https://github.com/jgarff/rpi_ws281x/blob/master/python/examples/strandtest.py but i am obtain this error:

raceback (most recent call last): File "test.py", line 83, in strip.begin() File "/home/pi/a/rpi-pcm-ws281x/neopixel_pcm.py", line 105, in begin raise RuntimeError('ws2811_init failed with code {0}'.format(resp)) RuntimeError: ws2811_init failed with code -1 Exiting cleanly

How is the correct way? Thank you :)

tvoverbeek commented 7 years ago

Since the master branch (which you seem to be using) is a copy from jgarff version (https://github.com/jgarff/rpi_ws281x), please use his version. Probably a mismatch between the installed C-code and your python code.

On Wed, May 31, 2017 at 6:54 PM, logickphp notifications@github.com wrote:

Hi, I am trying to execute the original example https://github.com/jgarff/rpi_ws281x/blob/master/python/ examples/strandtest.py but i am obtain this error:

raceback (most recent call last): File "test.py", line 83, in strip.begin() File "/home/pi/a/rpi-pcm-ws281x/neopixel_pcm.py", line 105, in begin raise RuntimeError('ws2811_init failed with code {0}'.format(resp)) RuntimeError: ws2811_init failed with code -1 Exiting cleanly

How is the correct way? Thank you :)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tvoverbeek/rpi-pcm-ws281x/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJE7tSn8zKc7MMZtOIaUy0wox6j2bmFks5r_ZtYgaJpZM4Nr6T3 .