Python Script for Pimoroni's Unicorn HAT HD
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-07-14 16:30:03 +02:00
.gitlab/issue_templates chore: Add GitLab issue templates 2021-07-14 16:30:03 +02:00
.gitignore Create .gitignore 2020-10-07 11:37:19 +02:00
fire_layer_1_flat.png Add files via upload 2019-12-15 20:23:32 +01:00
LICENSE Initial commit 2019-12-15 19:38:07 +01:00
README.md Update README.md 2021-06-25 10:47:28 +00:00
UHHD_VADT.py Add files via upload 2019-12-16 16:16:54 +01:00

Unicorn HAT HD: Various Animations, Displays and Text

[[TOC]]

Python Script for Pimoroni's Unicorn HAT HD

Randomly display/shows one of the following:

  1. Displays zzzZ between 22:00 and 08:00. Sleep-Mode, if you will.

  2. Displays the Aperture Science Logo, from the videogame Portal, cycling through the HSV colour spectrum.

  3. Rainbow-coloured scrolltext.

  4. Displays the Aperture Science Logo, from the videogame Portal, in animated rainbow colours, with sound.

  5. A relaxing ingle, with sound.

  6. CPU Temperature in °C, rainbow coloured unless temperatures exceed 55°C. Should the temperature rise above 55°C, it's displayed in red and an alarm sound is played.

NOTICE:

You need to provide HeatAlarm.ogg, fire.ogg, Still_Alive_Radio.ogg YOURSELF!

Should you want to customize the rainbow coloured text, check out TEXT1 and change it to your heart's desire. Also check out FONT1 if you want to change the font used.

Also has some variables built-in, in case you want to keep track of how many times certain parts of this script have been called. Simply look for any line with a "#Uncomment if you want to keep track of how many times this part was executed" and uncomment it, as well as the corresponding lines at the very bottom of the script, which will print them when you exit.

If you want to change the temperature at which alarms go off, look for the variable "warning" and edit it accordingly.

If you can't start the script, remember to

sudo chmod +x UHHD_VADT.py

If you want to run the script in a screen (in the background)

screen -d -m -S VADT ./UHHD_VADT.py

Re-attach to the screen using:

screen -r VADT

If screen isn't installed on your system:

sudo apt-get install screen