The Pimoroni Unicorn HAT lets you add 64 dazzling RGB LEDs to your Raspberry Pi, and makes for a sickeningly colourful display. I'll show you how to get yours set up, and we'll have a go at modifying an example script.
This tutorial is similar to Pimoroni's own, but we'll address some issues many encounter when trying to set up a Unicorn hat.
All you need is a Unicorn HAT and a Raspberry Pi: model B or Zero(W).
In a nutshell
- Execute: curl https://get.pimoroni.com/unicornhat | bash and follow the prompts.
- Navigate to the examples directory. You have to run these scripts as a super-user, so run from the terminal with eg. sudo python /home/pi/Pimoroni/unicornhat/examples/game_of_life.py
- Edit the file if necessary to use the full display.
The example I'm running in this video is an adaptation of Conway's Game of Life: a cellular automaton and classic LED-matrix project. You can read more about it at the Wikipedia article.