Code Monkey home page Code Monkey logo

unicorn-hat-hd-various-animations-and-stuff's Introduction

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

unicorn-hat-hd-various-animations-and-stuff's People

Contributors

griefed avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.