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 131 forks source link

Fixed get_pixels in python lib #51

Closed topshed closed 8 years ago

topshed commented 8 years ago

The get_pixels method was retuning a exception - I think the Adafruit neopixel library it calls had changed. ws2812.getPixelColorRGB() is now just ws2812.getPixelColor()

Gadgetoid commented 8 years ago

This was actually a mistake on my part. I had added getPixelColorRGB in https://github.com/pimoroni/unicorn-hat/commit/3f9a39a3ff4e2ed7c8ee990a03cd1cff941c6a45 since it's more useful for end-users than getting back a 24bit colour value and having to shift out the component colours manually. I've applied a fix in https://github.com/pimoroni/unicorn-hat/commit/38bc7716c052a98bfadf83bf3dcf9199b04e5a4e