When installed onto the Pi, the Unicorn will fit within a standard Raspberry Pi case. ![]() The unicornhat library (python3-unicornhat) is available for Python 2 and Python 3 in the Raspbian repo. However, this HAT is a 4×8 (or an 8×8) array of RGB LEDs, addressable via the I2C bus, which doesn’t eat up a line per LED (good thing, otherwise it would require 96 analog lines). Its primary purpose is lots of blinky lights to make pretty rainbows and stuff, hence the name. The fine folks at Pimoroni in Sheffield, UK have made a lovely little HAT device for the Pi called a Unicorn. In its most basic form, you can simply hook up an LED and a bias resistor between a ground line and a GPIO line on the Pi, but that doesn’t scale especially well – You can run out of GPIO lines pretty quickly, especially if you’re doing different colors for each status. ![]() I’ve been doing a little Raspberry Pi hacking lately, and put together a neat way to have physical status LEDs on your desk for things like EC2 instances.
0 Comments
Leave a Reply. |