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

pHAT HAT unification example and pHAT rotation 90° and 270° added (2nd attempt) #69

Closed dglaude closed 8 years ago

dglaude commented 8 years ago

Second attempt at merging this.

First change is in the Python library to permit 90° and 270° rotation on the pHAT Second set of change it a total re-organisation of all the examples:

Also add the documentation on how to build from github download.

Gadgetoid commented 8 years ago

Tested and merged. Good show with the auto-detection, in the right circumstances it works a treat. Being able to retrieve width/height from the library to create flexible ideas is a great idea. Thank you!