/unicorn

Example Raspberry Pi Unicorn HAT scripts.

Primary LanguagePythonMIT LicenseMIT

Unicorn Hat Examples

paint.py

Use your web browser to pixel paint onto UnicornHat.

Requirements:

sudo pip install flask

simple.py

Sets each pixel in turn and updates the display.

matrix.py

Knock, knock, Neo.

rainbow.py

Demonstrates the use of colorsys to animate through colour hues.

rainbow_blinky.py

Blinks a rainbow spot light on and off. Change fwhm to make the spot more/less focused (smaller numbers = more focused/larger numbers = less focused).

random_blinky.py

Blinks random leds.

show_png.py

Shows how you can open and display a PNG image file, great for sprite animations.

Requirements:

sudo pip install pillow

clock.py

Uses graphics.py and shows how you can, but probably shouldn't, display an analogue clock on Unicorn Hat!