pimoroni / unicorn-hat

Python library for Unicorn pHAT and HAT. 32 or 64 blinding ws2812 pixels for your Raspberry Pi
https://shop.pimoroni.com/products/unicorn-hat
MIT License
370 stars 130 forks source link

Fail to initialize library #64

Closed neoxharsh closed 8 years ago

neoxharsh commented 8 years ago

pi@raspberrypi:~/Pimoroni/unicornhat $ sudo python demo.py Traceback (most recent call last): File "demo.py", line 3, in <module> import unicornhat as unicorn File "/usr/local/lib/python2.7/dist-packages/unicornhat.py", line 14, in <module> ws2812.begin() File "/usr/local/lib/python2.7/dist-packages/neopixel.py", line 114, in begin raise RuntimeError('ws2811_init failed with code {0}'.format(resp)) RuntimeError: ws2811_init failed with code -1 Exiting cleanly pi@raspberrypi:~/Pimoroni/unicornhat $

Gadgetoid commented 8 years ago

This should be fixed across the board with the latest changes to, and sync with the parent rpi_ws218x library.