Skip to main content

Python library for driving Pimoroni Unicorn HAT HD

Project description

Unicorn HAT HD

Build Status Coverage Status PyPi Package Python Versions


Manual install:

SPI needs to be enabled to communicate with the Unicorn Hat HD. If the SPI on your Pi is not enabled or you are unsure if it is:

sudo raspi-config nonint do_spi 0
sudo reboot

Library install for Python 3:

sudo apt-get install python3-pip python3-dev python3-spidev
sudo pip3 install unicornhathd

Library install for Python 2:

sudo apt-get install python-pip python-dev python-spidev
sudo pip install unicornhathd


If you want to contribute, or like living on the edge of your seat by having the latest code, you should clone this repository, cd to the library directory, and run:

sudo apt-get install python-dev python-setuptools
sudo python3 install

(or sudo python install whichever your primary Python environment may be)

In all cases you will have to enable the SPI bus.


  • Added support for display addressing (for Ubercorn)


  • Deferred IO setup until first call to show
  • Changed sys.exit to ImportError for warning about missing dependencies


  • Tweaked Python package MANIFEST


  • Initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for unicornhathd, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size unicornhathd-0.0.4-py2-none-any.whl (7.2 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size unicornhathd-0.0.4-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size unicornhathd-0.0.4.tar.gz (5.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page