Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Griefed/Unicorn-HAT-HD-Various-Animations-and-Stuff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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