Unicorn_Hat_Mini Crate
This is a Rust Library for interfacing with a Pimorini Unicorn HAT Mini, for Raspberry Pi.
It is strongly based on their Python Library with some changes.
SPI must be enabled on your Raspberry Pi for it to work: sudo raspi-config nonint do_spi 0
Example
Cargo.toml
[]
= "0.1"
Example code that sets all the pixels.
use time;
use RGB8;
use UnicornHATMini;