You must enable SPI on your Raspberry Pi:
- Run:
sudo raspi-config nonint do_spi 0
Stable library from PyPi:
- Just run
sudo pip3 install unicornhatmini
Or for Python 2:
sudo pip install unicornhatmini
Latest/development library from GitHub:
git clone https://github.com/pimoroni/unicornhatmini-python
cd unicornhatmini-python
sudo ./install.sh